How can I store $@ in a variable while keeping its properties?
$@
I want to obtain exactly the same behavior even if I use $@ or my own varia
You can store it in an array:
args=("$@")
then you can access each of the arguments with index: "${args[index]}" and all arguments at once with "${args[@]}".
"${args[index]}"
"${args[@]}"