shift is a shell builtin
that operates on the positional parameters. Each
time you invoke shift, it
"shifts" all the positional parameters down by
one. $2 becomes $1, $3
becomes $2, $4 becomes
$3
shift 是 shell 中的内部命令,用于处理参数位置。每次调用 shift 时,它将所有位置上的参数减一。 $2变成了$1, $3变成了$2, $4变成了$3
阅读(1625) | 评论(0) | 转发(0) |