Re: moving fd affect outer scope

2013-02-19 Thread Chet Ramey
On 2/18/13 2:55 PM, Stephane Chazelas wrote: > Bash Version: 4.2 > Patch Level: 37 > Release Status: release > > Moving a file descriptor for a builtin command or a compound > command leaves the fd closed afterwards: > > $ bash -c ': <&1-; echo test' > bash: line 0: echo: write error: Bad file d

moving fd affect outer scope

2013-02-18 Thread Stephane Chazelas
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA