Created
May 13, 2016 15:11
-
-
Save jhunt/2bc09837e5a53b6bf3c9d61593b9fe0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -a argv | |
argv=${@:0} | |
while (( $# != 0 )); do | |
echo "1) arg = [$1]" | |
shift | |
done | |
echo | |
set -- ${argv[@]} | |
echo | |
while (( $# != 0 )); do | |
echo "2) arg = [$1]" | |
shift | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment