bug-bash
[Top][All Lists]
Advanced

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

Re: declare -f is incorrect


From: Chet Ramey
Subject: Re: declare -f is incorrect
Date: Sun, 11 Feb 2007 22:42:29 -0500
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

JC Cavaillé wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i486
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
> -DCONF_OSTYPE='linux-gnu' -DCONF_$uname output: Linux lithium 2.6.16-xen
> #2 SMP Sat Sep 16 14:25:47 CEST 2006 i686 GNU/Linux
> Machine Type: i486-pc-linux-gnu
> 
> Bash Version: 3.1
> Patch Level: 17
> Release Status: release
> 
> Description:
>        declare -f is incorrect with '> >(...)' or '< <(...)'
> 
> Repeat-By:
>     root@lithium:~# function foo
>         >         {
>         >           cat <  <(ls)
>         >         }
>     root@lithium:~# eval "$(declare -f foo)"
>     bash: syntax error near unexpected token `('
>     bash: syntax error near unexpected token `}'

This was fixed in bash-3.2.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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