From: Ralf Wildenhues Date: Mon, 1 Nov 2004 11:09:41 +0000 (+0000) Subject: * tests/defs.m4sh (func_exec): `shift'ing when there is nothing X-Git-Tag: release-2-1b~885 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8024c554979ab2a8c7593e4e4d3c409e583c662b;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 b0c870d84..666af1251 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.