OSDN Git Service

Bug fix in parsing arguments.
[portsreinstall/current.git] / lib / main / libcommand.sh
index f6c210d..dac453f 100644 (file)
@@ -302,7 +302,6 @@ command_exec_without_pkgtools__notify_reset_options ()
 # ============= Execute command operations which do not need package tools =============
 command_all_exec_without_pkgtools ()
 {
-       shift || :
        case $COMMAND_MODE in
        clean | load )
                command_exec_without_pkgtools__notify_reset_options
@@ -326,7 +325,6 @@ command_all_exec_without_pkgtools ()
 command_all_exec_irrespective_of_saved_options ()
 {
        local arcfile origins_match pkgs_match
-       shift || :
        case $COMMAND_MODE in
        ok )
                _command_exec_irrespective_of_saved_options__notify_ignored_options
@@ -464,7 +462,6 @@ command_all_exec_irrespective_of_saved_options ()
 command_all_exec_before_tools_upgrade ()
 {
        local glob origins errno
-       shift || :
        case $COMMAND_MODE in
        reset )
                message_echo "Starting to reset the temporary database by preserving the initial snapshot of installed packages..."
@@ -483,7 +480,7 @@ command_all_exec_before_tools_upgrade ()
                exit
                ;;
        show )
-               command_show
+               command_show "$@"
                exit
                ;;
        make )