bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using exec to close a fd in a var crashes bash


From: alex xmb ratchev
Subject: Re: using exec to close a fd in a var crashes bash
Date: Wed, 23 Aug 2023 11:00:54 +0200

On Tue, Aug 22, 2023, 21:00 Dale R. Worley <worley@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
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]