help-bash
[Top][All Lists]
Advanced

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

[Help-bash] FIFO silently ignored on . ( `s ource´ ) command


From: Timothy Madden
Subject: [Help-bash] FIFO silently ignored on . ( `s ource´ ) command
Date: Mon, 12 Dec 2011 14:54:08 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0

[cross-posted on address@hidden (gmane.comp.shells.bash.bugs) and address@hidden

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

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

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

Thank you,
Timothy Madden



reply via email to

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