Process substitution into loop

Grail Dane grail69 at hotmail.com
Thu Jun 16 00:56:38 UTC 2011






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 `<'
So something is not loving me somewhere :(grail
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20110616/847703d5/attachment.html>


More information about the upstart-devel mailing list