[cross-posted on bug-bash@gnu.org (gmane.comp.shells.bash.bugs) and help-b...@gnu.org]

Hello

I have
GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu) on an up-to-date CentOS 5.7 (Final) x64,
and
        GNU bash, version 4.1.10(4)-release (i686-pc-cygwin) on Windows 7 x64 
SP1.

In both OSes I noted that `source´ built-in does not work on a FIFO. On CentOS the command is just ignored, and on cygwin it blocks indefinitely (I guess). Ok, cygwin FIFOs may not be a good test case, but I think CentOS ones are.

Trying the same thing with ksh version
  'sh (AT&T Research) 93t+ 2010-02-02',
or with
'tcsh 6.14.00 (Astron) 2005-03-25 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec',
or
  'zsh 4.2.6 (x86_64-redhat-linux-gnu)'

than it works fine.

Here is my test example

[root@appserver2 ~]# mkfifo /tmp/myfifo
[root@appserver2 ~]# echo ls -l >/tmp/myfifo &
[2] 23771
[root@appserver2 ~]# source /tmp/myfifo         # no `ls´ output here...
[root@appserver2 ~]# rm /tmp/myfifo
rm: remove fifo `/tmp/myfifo'? y
[2]+  Exit 1                  echo ls -l > /tmp/myfifo
[root@appserver2 ~]#

Is it a known problem with bash ? Is it fixed on newer versions ?

Thank you,
Timothy Madden


Reply via email to