Re: process redirection: syntax error after while loop

2006-06-25 Thread Marvin Greenberg
OK. I reread the documentation without my preconceived idea of what this did, and it is clear to me now. And your example also made it pretty explicit. Thanks! marvin ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/

Re: process redirection: syntax error after while loop

2006-06-24 Thread Bob Proulx
Chet Ramey wrote: > Marvin Greenberg wrote: > > 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) > > That's not a redire

Re: process redirection: syntax error after while loop

2006-06-23 Thread Chet Ramey
Marvin Greenberg wrote: > 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='/