Access arguments to Bash script inside a function

Viewed 23499

Inside a function, $1 ... $n are the parameters passed to that function. Outside a function $1 ... $n are the parameters passed to the script.

Can I somehow access the parameters passed to the script inside a function?

6 Answers
Related