diff --git a/LDP/guide/docbook/Bash-Beginners-Guide/chap9.xml b/LDP/guide/docbook/Bash-Beginners-Guide/chap9.xml index b412579b..a28638da 100644 --- a/LDP/guide/docbook/Bash-Beginners-Guide/chap9.xml +++ b/LDP/guide/docbook/Bash-Beginners-Guide/chap9.xml @@ -507,7 +507,7 @@ rm "$QUIT" The shift built-in What does it do? The shift command is one of the Bourne shell built-ins that comes with Bash. This command takes one argument, a number. The positional parameters are shifted to the left by this number, N. The positional parameters from N+1 to $# are renamed to variable names from $1 to $# - N+1. -Say you have a command that takes 10 arguments, and N is 4, then $4 becomes $1, $5 becomes $2 and so on. $10 becomes $7 and the original $1, $2 and $3 are thrown away. +Say you have a command that takes 10 arguments, and N is 3, then $4 becomes $1, $5 becomes $2 and so on. $10 becomes $7 and the original $1, $2 and $3 are thrown away. If N is zero or greater than $#, the positional parameters are not changed (the total number of arguments, see ) and the command has no effect. If N is not present, it is assumed to be 1. The return status is zero unless N is greater than $# or less than zero; otherwise it is non-zero. Examples