Process substitution into loop
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Tue Jun 14 07:30:30 UTC 2011
On Tue, 14 Jun 2011, Grail Dane wrote:
>
> Under bash I get:
> ip link set dev lo upip link set dev eth0 upip link set dev sit0 up
>
> Under sh I get:
> line 6: syntax error near unexpected token
> `<'line 6: `done< <(ip link | awk '/^[0-9]/ && gsub(/:/,""){print $2}')'
RTFM, `man bash'?
If bash is invoked with the name sh, it tries to mimic the
startup behavior of historical versions of sh as closely as
possible, while conforming to the POSIX standard as well.
> Once compiled and installed is there any way to check what shell it
> thinks is the default?
Maybe:
$ readlink /bin/sh
could help?
Cheers,
--
Cristian
More information about the upstart-devel
mailing list