#!/bin/bash # to demo the difference between how # command-line arguments with blanks are # treated in a list-style for-loop # using $@ versus "$@" # # (so, for best results, call this with at # least one command-line argument including # at least one blank! 8-) ) echo "this is using \$@" for i in $@ do echo $i done echo 'this is using "$@"' for i in "$@" do echo $i done