On 12.12.2011 16:05, Chet Ramey wrote:
On 12/12/11 7:54 AM, Timothy Madden wrote:

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.

This was changed about five years ago, before bash-4.0 was released.

Oh, sorry.

My CentOS 5 is still on bash-3.2.25. I must be quite unlucky, since on 3.2.48 it works.

CentOS 6 promises to do better, but unfortunately it is not compatible with CentOS 5.

Indeed, trying my example with different distributions (Ubuntu, Fedora, CentOS 6), with newer versions of bash shows that `source /FIFO/´ now works.

Thank you,
Timothy Madden


Reply via email to