Skip to content

Instantly share code, notes, and snippets.

@iNecas
Last active Aug 15, 2018
Embed
What would you like to do?
Difference between $* and "$@"
./test_args.sh "one two" three
with $*
["one", "two", "three"]
with "$@"
["one two", "three"]
#!/usr/bin/env ruby
p ARGV
#!/usr/bin/env bash
echo 'with $*'
./test_args.rb $*
echo 'with "$@"'
./test_args.rb "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment