This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] sotruss: fix argument parsing
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: libc-alpha at sourceware dot org
- Date: Mon, 26 Nov 2012 21:08:51 +0100
- Subject: [PATCH] sotruss: fix argument parsing
After shifting the argument is in $1, not $2. Installed as obvious.
Andreas.
* elf/sotruss.ksh: Correctly locate argument of -F and -T options.
diff --git a/elf/sotruss.ksh b/elf/sotruss.ksh
index 587ab68..8390b6c 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
--
1.8.0
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."