On Tuesday 29 April 2008 21:47,
lihao0129@gmail.com wrote:
>> Does your script begin with #!/bin/bash?
>
> Thanks, if I change the shebang line from
>
> #!/bin/sh
>
> to
>
> #!/bin/bash
>
> my original script worked. Just curious since 'ls -l /bin/sh' shows
>
> lrwxrwxrwx 1 root root 4 Apr 23 15:20 /bin/sh -> bash
But bash behaves slightly differently if it's invoked with the name "sh". It
actually (tries to) run in POSIX mode, where the <(..) construct does not
exist. See the man for the details.
--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.