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
Embed
What would you like to do?
#!/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