Skip to main content
clarification
Source Link
Adel M.
  • 500
  • 5
  • 12

When I do something like ARGS="$@", the shell just concatenates the arguments stored in "$@". Is there a way to store "$@" into a variable in pure POSIX shell to be able to use it to call another program or function with the passed arguments?

When I do something like ARGS="$@", the shell just concatenates the arguments stored in "$@". Is there a way to store "$@" into a variable in pure POSIX shell?

When I do something like ARGS="$@", the shell just concatenates the arguments stored in "$@". Is there a way to store "$@" into a variable in pure POSIX shell to be able to use it to call another program or function with the passed arguments?

Source Link
Adel M.
  • 500
  • 5
  • 12

Is there a way to store "$@" into a variable in pure POSIX shell?

When I do something like ARGS="$@", the shell just concatenates the arguments stored in "$@". Is there a way to store "$@" into a variable in pure POSIX shell?