From d260b3b40358aaa9a159681271e7420842015a61 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 26 Nov 2012 20:58:27 +0100 Subject: sotruss: fix argument parsing --- ChangeLog | 4 ++++ elf/sotruss.ksh | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bca890ac38..a6af6e7ad4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-11-26 Andreas Schwab + + * elf/sotruss.ksh: Correctly locate argument of -F and -T options. + 2012-11-24 Adam Conrad * configure.in: Autodetect C++ header directories. diff --git a/elf/sotruss.ksh b/elf/sotruss.ksh index 587ab68987..8390b6c501 100755 --- a/elf/sotruss.ksh +++ b/elf/sotruss.ksh @@ -94,14 +94,14 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. do_missing_arg "$1" fi shift - SOTRUSS_FROMLIST="$2" + SOTRUSS_FROMLIST="$1" ;; -T | --t | --to) if test $# -eq 1; then do_missing_arg "$1" fi shift - SOTRUSS_TOLIST="$2" + SOTRUSS_TOLIST="$1" ;; -o | --o | --ou | --out | --outp | --outpu | --output) if test $# -eq 1; then -- cgit v1.2.3