Re: Probably very stupid script/bash question
-----BEGIN PGP SIGNED MESSAGE-----
William Pursell wrote:
> 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)
bash is not passing it's stdin to cat's, cat is also in a subshell.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----