1

Why does bash behave different when called as sh

view story
linux-howto

http://stackoverflow.com – I have an ubuntu machine with default shell set to bash and both ways to the binary in $PATH: $ which bash /bin/bash $ which sh /bin/sh $ ll /bin/sh lrwxrwxrwx 1 root root 4 Mar 6 2013 /bin/sh -> bash* But when I try to call a script that uses the inline file descriptor (that only bash can handle, but not sh) both calls behave differently: $ . ./inline-pipe reached $ bash ./inline-pipe reached $ sh ./inline-pipe ./inline-pipe: line 6: syntax error near unexpected token `<' ./inline-pipe: line 6: `done < <(echo "reached")' The example-script I am referring to looks like that (HowTos)