On Tue, Aug 22, 2023, 21:00 Dale R. Worley <wor...@alum.mit.edu> 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 > i think there was a ' duplicate ' directive .. use that 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. > > Dale > >