Get a range of script arguments in zsh
Get, for example, 3 arguments from the fourth one:
for x in ${@:4:3}; do
echo $x
done
Get all the arguments:
for x in $@; do
echo $x
done
Get all the arguments from the second one:
for x in ${@:2}; do
echo $x
done