2017-09-22 I suggest to use `for i do' instead of `while test $# -gt 0; do' in most cases, when processing command line arguments in the shell. [0] `for i do' does not work for flags with arguments, though. Btw: This form: for i do is the most portable one, but ``for i do'' works everywhere, ex- cept for the original ash. [1] [0] https://debianforum.de/forum/viewtopic.php?f=34&t=166886&p=1147104#p1147104 [1] https://www.in-ulm.de/~mascheck/various/bourne_args/ http://marmaro.de/lue/ markus schnalke