Also, it has a problem with long arguments:

$ cat t.sh
#!/bin/sh
all="$*"
echo $# ${#all}
sleep 5
$ ./t.sh a "$(yes | head -10000)" b
3 20003
$ screen ./t.sh a "$(yes | head -10000)" b
[ displays "3 20003", pauses 5 seconds, exits ]
$ screen screen ./t.sh a "$(yes | head -10000)" b
[ displays "1 1", pauses 5 seconds, exits ]
$

Here it loses all the arguments after the first long one !

-- 
Ian Jackson <ijack...@chiark.greenend.org.uk>   These opinions are my own.  

Pronouns: they/he.  If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.

Reply via email to