summaryrefslogtreecommitdiff
path: root/Doc/help/shift
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:19 +0100
committerAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:19 +0100
commit2794556a41b50f635b6aa49c32fc6ca7bc08c901 (patch)
tree9557d7a073d4b24e9f10cdc337d9a819eb65ad1a /Doc/help/shift
parentb0d5cb56971618762ab13dbdb8fb17753f07f0f6 (diff)
parent94c033d2e281eb1f49e8366d21fc259ce8c0c4f5 (diff)
downloadzsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.tar.gz
zsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.zip
Update upstream source from tag 'upstream/5.8'
Update to upstream version '5.8' with Debian dir b7a9cb7b782a12a49dca06e06ca2554b5a95bf93
Diffstat (limited to 'Doc/help/shift')
-rw-r--r--Doc/help/shift8
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.