diff --git a/src/homework/2.3/branching/merge.sh b/src/homework/2.3/branching/merge.sh index f534246..e5fc1a9 100644 --- a/src/homework/2.3/branching/merge.sh +++ b/src/homework/2.3/branching/merge.sh @@ -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 \ No newline at end of file