Skip to content

Conversation

@vog
Copy link

@vog vog commented Mar 11, 2015

A plain $@ parameter expands to:

$1 $2 $3 ...

which may split arguments that contain spaces. Better use "$@" which expands to

"$1" "$2" "$3" ...

and thus escapes each argument correctly and yet indivdually.

A plain $@ parameter expands to:

$1 $2 $3 ...

which may split arguments that contain spaces. Better use "$@" which expands to

"$1" "$2" "$3" ...

and thus excapes each argument correctly and yet indivdually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant