Skip to content

Instantly share code, notes, and snippets.

@jhunt
Created May 13, 2016 15:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jhunt/2bc09837e5a53b6bf3c9d61593b9fe0e to your computer and use it in GitHub Desktop.
#!/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