Debian Codegraph @

tests/include/listargs

raw
1 #!/bin/bash
2
3 echo "argc:$#"
4
5 declare -i argn=1
6 while [ "$#" -gt 0 ] ; do
7 echo "arg$argn:$1"
8 shift 1
9 argn=$(( argn + 1 ))
10 done