merge: use shift

This commit is contained in:
2022-01-28 09:47:41 +07:00
parent f767ec7e6a
commit b305eaa877

View File

@@ -2,7 +2,8 @@
# display command line options
count=1
for param in "$@"; do
echo "\$@ Parameter #$count = $param"
while [[ -n "$1" ]]; do
echo "Parameter #$count = $1"
count=$(( $count + 1 ))
shift
done