Everybody:
I know we've probably beat this thread to death, but if you're running the new korn shell, ksh93, (on Solaris it's referred to as the dest top ksh), according to
Bolsky in his book, the New Kornshell
"${@}" is all positional parameters from 1 on
"${@:3}" is all the positional parameters from 3 on
"${@:3:7}" is all the positional parameters from 3 to 7
I thought I'd see what happens using the argument count, $#:
#!/usr/dt/bin/dtksh
# give me the last argument
echo "${@:$#}"
It works; you don't have to eval or worry about shifting if you're argument count
is over 9.
There's always more than one way of doing things. Too bad some of us have to worry
about portability.
Regards,
Ed