Re: Running commands from array in a child script

2007-10-26 Thread Paul Jarc
bengoavs <[EMAIL PROTECTED]> wrote: > CMDS=("ls -l > /tmp/log") > ~/child.sh "${CMDS[0]}" > > child.sh: > for i in "$@" > do > if [ "$i" ]; then > echo "$i" > $i Redirections and other special characters are not treated specially if they are produced by a va

Running commands from array in a child script

2007-10-26 Thread bengoavs
$i fi done ./main.sh ls -l > /tmp/log ls: >: No such file or directory ls: /tmp/log: No such file or directory -- View this message in context: http://www.nabble.com/Running-commands-from-array-in-a-child-script-tf4697757.html#a13428706 Sent from the Gnu - Bash mailing list archive at Nabble.com.