In a function we must not shift positional parameters

This commit is contained in:
erdgeist 2007-10-08 05:24:45 +00:00
parent 96478770eb
commit 32f4547b22

View File

@ -250,7 +250,6 @@ parse_geli_attach_args () {
# everything else is dicarded # everything else is dicarded
# exit values: 0->NO PASSWORD SET, 1->PASSWORD SET # exit values: 0->NO PASSWORD SET, 1->PASSWORD SET
_exit=0 _exit=0
shift
while getopts :bPva:i:K:l:s: arg; do while getopts :bPva:i:K:l:s: arg; do
case ${arg} in case ${arg} in
b|v|a|i|l|s);; # ignore these b|v|a|i|l|s);; # ignore these
@ -270,7 +269,6 @@ parse_gbde_attach_args () {
# everything else is discarded # everything else is discarded
# exit values: 0->NO PASSWORD SET, 1->PASSWORD SET # exit values: 0->NO PASSWORD SET, 1->PASSWORD SET
_exit=0 _exit=0
shift
while getopts :iK:f:L:P: arg; do while getopts :iK:f:L:P: arg; do
case ${arg} in case ${arg} in
i|f);; # ignore these i|f);; # ignore these