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

Re: Probably very stupid script/bash question

Mark Clarkson wrote:
On Wed, 05 Mar 2008 13:10:37 -0800
Bob McGowan <bob_mcgowan@symantec.com> wrote:
If I do the "process substitution" using a stand alone programs, it works as described:

     $ wc <(echo this is a test)
           1       4      15 /dev/fd/63

I couldn't find the correct place to interject this question in
the thread, so I fairly randomly selected this location...

As far as I can tell, the following 4 commands should
all behave the same, but the last one hangs.  Can anyone
see why?

$ cat <(echo foo)
$ bash -c 'cat <(echo foo)'
$ echo foo | bash -c 'cat'
$ bash -c 'cat' <(echo foo)

Reply to: