Configuration Information [Automatically generated, do not change]: Machine: i686 OS: cygwin Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -DRECYCLES_PIDS -I. -I/tmp/bash-3.1 -I/tmp/bash-3.1/include -I/tmp/bash-3.1/lib -O2 uname output: CYGWIN_NT-5.1 tom 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin Machine Type: i686-pc-cygwin
Bash Version: 3.1 Patch Level: 17 Release Status: release Description: All these work fine: cat <~/.bash_history cat <(cat ~/.bash_history) while read f; do echo $f; done <~/.bash_history But, this fails: while read f; do echo $f; done <(cat ~/.bash_history) bash: syntax error near unexpected token `<(cat ~/.bash_history) This is important when the operations in the loop need to affect the current shell environment (as contrasted with a | pipe) Also duplicated error on linux bash 3.00.16(1)-release (i386-redhat-linux-gnu) Repeat-By: See description. _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash