bug-bash
[Top][All Lists]
Advanced

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

functions that use process substitution are not exported correctly


From: Ittay Dror
Subject: functions that use process substitution are not exported correctly
Date: Tue, 20 Jun 2006 15:05:57 +0300
User-agent: Thunderbird 1.5 (X11/20060112)

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' 
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -D_GNU_SOURCE 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables
uname output: Linux ittaydlt 2.6.15-1.1830_1.rhfc4.cubbi_swsusp2 #1 Fri Feb 3 
10:25:49 CET 2006 i686 i686 i386 GNU/Linux
Machine Type: i386-redhat-linux-gnu

Bash Version: 3.0
Patch Level: 16
Release Status: release

Description:
       exporting functions which use redirection to process substitution causes 
syntax errors

Repeat-By:
        > function foo() { echo hi > >(cat); }
        > foo
        hi
        > export -f foo
        > bash
bash: foo: line 0: syntax error near unexpected token `('
bash: foo: line 0: `foo () {  echo hi >>(cat)'
bash: error importing function definition for `foo'



--
===================================
Ittay Dror, Chief architect, openQRM TL, R&D, Qlusters Inc.
address@hidden
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running




reply via email to

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