How do I pass on script arguments that contain quotes/spaces?
[*] Use “$@” with quotes: prog=”$1″ “$@” ecode=”$?” echo “$prog exited with $ecode” This will pass each argument exactly as it was received. If you don’t include the quotes, each element will be split according to $IFS: “$@” is like “$1” “$2” “$3” …, passing each element as a separate argument. “$*” is like “$1 … Read more