.TH shift "" "" Command
.PC "Shift positional parameters"
.B shift
.PP
.HS
The shell executes \fBshift\fR directly.
.HE
Commands to the shell can be stored in a file, or
.IR script .
Positional parameters pass command-line variables to a script.
.PP
.B shift
changes the values of positional parameters.
The old parameter values
\fB$2\fR, \fB$3\fR, ...
become the new parameter values
\fB$1\fR, \fB$2\fR ....
.B shift
also reduces the value of \fB$#\fR,
which gives the number of positional parameters, by one.
.PP
The shell executes
.B shift
directly.
.SH "See Also"
.Xr "commands," commands
.Xr "ksh," ksh
.Xr "sh" sh
