Revision [749]
This is an old revision of CommandShift made by DavidLee on 2009-09-16 07:51:43.
Command shift
Name
shift Shifts positional arguments or sequence variablesSynopsis
shift [n]shift variable [n]
example:
set a b c d e shift echo $*
result
b c d e
example
shift 2 echo $*
result
d e
example
a=(1 2 3 foo bar spam) shift a 2 echo $a
result
3 foo bar spam
CategoryCommands