From 9f14fa052e94d7b340522ddcdd3d0cfaf744aa21 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 19 Jun 2008 10:15:04 +0200 Subject: [PATCH 1/1] fix argument parsing arguments would not accumulate but override previous ones. this was a silly bug. fixes Debian bug #486945. --- shutdown.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shutdown.in b/shutdown.in index cac4d63..73d2c15 100755 --- a/shutdown.in +++ b/shutdown.in @@ -71,9 +71,9 @@ for arg in "$@"; do --) END_OF_ARGS=1;; *) if [ $END_OF_ARGS -eq 0 ]; then - CMDARGS="${args:+$args }$arg" + CMDARGS="${CMDARGS:+$CMDARGS }$arg" else - SCRIPTARGS="${args:+$args }--arg $arg" + SCRIPTARGS="${SCRIPTARGS:+$SCRIPTARGS }--arg $arg" fi ;; esac -- 2.39.5