From: Ralf Wildenhues Date: Mon, 1 Nov 2004 11:10:14 +0000 (+0000) Subject: * tests/defs.m4sh (func_exec): `shift'ing when there is nothing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39874879f2ebf3973d331d0d189a15c0652e5e4f;p=thirdparty%2Flibtool.git * tests/defs.m4sh (func_exec): `shift'ing when there is nothing to shift is non-portable. --- diff --git a/ChangeLog b/ChangeLog index f0a9fd8ca..b4cec579a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-30 Ralf Wildenhues + + * tests/defs.m4sh (func_exec): `shift'ing when there is nothing + to shift is non-portable. + 2004-10-28 Patrick Welche , Ralf Wildenhues diff --git a/tests/defs.m4sh b/tests/defs.m4sh index 494415a62..e3b154df9 100644 --- a/tests/defs.m4sh +++ b/tests/defs.m4sh @@ -284,7 +284,8 @@ func_exec () if eval $my_program $my_exp_output; then : else - shift; shift + shift + test "x$1" = x || shift func_error "$0: cannot execute $my_program ${1+$@}" # Simple check to see if they are superuser.