Re: [bug] Bash translates >&$var into &>$var for exported functions.

2012-01-25 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/23/12 2:50 AM, Dan Douglas wrote: > Hello, In the case of exported functions, Bash interprets a copy descriptor > followed by an expansion as the >& synonym for &>, resulting in the output > going to a file named as the value of the FD it's give

[bug] Bash translates >&$var into &>$var for exported functions.

2012-01-22 Thread Dan Douglas
Hello, In the case of exported functions, Bash interprets a copy descriptor followed by an expansion as the >& synonym for &>, resulting in the output going to a file named as the value of the FD it's given. This only applies to ">&$var" and not "<&$var". I've tested various quoting, Is there s