Process substitution into loop
James Hunt
james.hunt at ubuntu.com
Thu Jun 16 08:33:50 UTC 2011
Hi Grail,
On 16/06/11 01:56, Grail Dane wrote:
> Hi James
>
>> What does this show?:
>>
>> strings /path/to/upstart/source/init/init|grep ^/bin
>
> /bin/bash (looks good :) )
>
> I added the same logging and set and env lines to
>
>> >
> exec >> /tmp/grail.log 2>&1
> set -x
>> >> while read -r DEVICE
>> >> do
>> >> echo ip link set dev $DEVICE up
>> >> done< <(ip link | awk '/^[0-9]/ && gsub(/:/,""){print $2}')
> set
> env
>
> Unfortunately, my log has only one line in it:
>
> /proc/self/fd/10: line 8: syntax error near unexpected token `<'
In which case, it must be either a rc file that is changing the behaviour /etc/bash*?
However, my guess is that you configured bash without the option:
--enable-process-substitution
Regards,
James.
>
>
> So something is not loving me somewhere :(
> grail
>
More information about the upstart-devel
mailing list