$* and $@ are not arrays, but spatial separation variables defined by a function or script of the call time. You can access your elements with $n , where n is the position of the argument you want.
foo() { echo $1 } foo one two three
Jay adkisson
source share