diff options
Diffstat (limited to 'Doc/help/shift')
-rw-r--r-- | Doc/help/shift | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/help/shift b/Doc/help/shift new file mode 100644 index 000000000..3bb236707 --- /dev/null +++ b/Doc/help/shift @@ -0,0 +1,8 @@ +shift [ -p ] [ n ] [ name ... ] + The positional parameters ${n+1} ... are renamed to $1 ..., + where n is an arithmetic expression that defaults to 1. If any + names are given then the arrays with these names are shifted in- + stead of the positional parameters. + + If the option -p is given arguments are instead removed (popped) + from the end rather than the start of the array. |