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: Dale R. Worley
Subject: Re: using exec to close a fd in a var crashes bash
Date: Tue, 22 Aug 2023 14:59:14 -0400

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.

Dale



reply via email to

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