sotruss: fix argument parsing

This commit is contained in:
Andreas Schwab 2012-11-26 20:58:27 +01:00
parent 3e2e43e250
commit d260b3b403
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2012-11-26 Andreas Schwab <schwab@linux-m68k.org>
* elf/sotruss.ksh: Correctly locate argument of -F and -T options.
2012-11-24 Adam Conrad <adconrad@0c3.net>
* configure.in: Autodetect C++ header directories.

View file

@ -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