|
| From: | Chet Ramey |
| Subject: | Re: feature suggestion: ability to expand a set of elements of an array or characters of a scalar, given their indices |
| Date: | Wed, 26 Jun 2024 10:58:12 -0400 |
| User-agent: | Mozilla Thunderbird |
On 6/11/24 6:48 AM, Zachary Santer wrote:
My mind returns to this nonsense, as I find a use for it.
Imagine this functionality:
$ array=( zero one two three four five six )
$ printf '%s\n' "${array[@]( 1 5 )}"
one
five
I'm not inclined to implement this. I don't like the syntax and there are
already other ways to get the values you want.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
| [Prev in Thread] | Current Thread | [Next in Thread] |