On 8/22/23 2:59 PM, Dale R. Worley wrote:
Is there any way to write a redirection "Redirect the fd whose number is
in $FOO to file /foo/bar?"  OK, you can write 'bash -c "..."' and
assemble a command string however you want.  But is there a direct way
to write it?  The "{var}>..." mechanism *assigns* to $var, rather than
taking its existing value.

If you want an extra round of word expansion, use eval.

--
``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