Georgios M. Zarkadas dixit: >leads to the error. Specifically, it passes an empty argument through >"$@", which then makes the conditional code (while [ -n "$1" ]; do...
… and … + #ignore empty arguments (for the case "$@" is empty) … but "$@" is not empty unless an empty argument is explicitly passed: tg@blau:~ $ sh -c 'for i in "$@"; do echo -n x; done; echo .' 0 . tg@blau:~ $ sh -c 'for i in "$@"; do echo -n x; done; echo .' 0 "" x. So this is fighting the symptoms and not a good fix. Rather try to find out why there’s a "" passed in the first place. bye, //mirabilos -- FWIW, I'm quite impressed with mksh interactively. I thought it was much *much* more bare bones. But it turns out it beats the living hell out of ksh93 in that respect. I'd even consider it for my daily use if I hadn't wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org