[CentOS] bash on Centos 5 can not source FIFOs ...

Timothy Madden

terminatorul at gmail.com
Mon Dec 12 15:13:23 UTC 2011


Hello

I run into this problem on CentOS 5.7 (Final), that if I try to source a 
FIFO in bash, my command will be silently ignored and nothing from the 
FIFO is interpreted. Here is a simple example:

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


CentOS 5.7 comes with 'GNU bash, version 3.2.25(1)-release 
(x86_64-redhat-linux-gnu)'. I can see from posting in the bash group 
that the same bash 3.2 (and older) on a different distribution can 
source the FIFO as expected:
    nntp://news.gmane.org/gmane.comp.shells.bash.bugs/17652
    http://thread.gmane.org/gmane.comp.shells.bash.bugs/17649/focus=17652

Can this be a CentOS/packaging issue ?

Thank you,
Timothy Madden




More information about the CentOS mailing list