bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

process redirection: syntax error after while loop


From: Marvin Greenberg
Subject: process redirection: syntax error after while loop
Date: Fri, 23 Jun 2006 11:45:17 -0400
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

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.




reply via email to

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