On 4/29/21 12:59 PM, Tom (AST) Watson wrote:
All...

I've resigned to having it the way it is, but I note that the solution doesn't 
need the backslash escape:
[tsw@box6 ~]$ k=10
[tsw@box6 ~]$ eval echo {1..$k}
1 2 3 4 5 6 7 8 9 10

This one doesn't, but putting in the slash skips the first brace
expansion entirely, instead of relying on the degenerate brace expansion
to be left unchanged, so it's safer in general.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to