[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Do not shift empty cmdline
From: |
Ralf Wildenhues |
Subject: |
FYI: Do not shift empty cmdline |
Date: |
Mon, 1 Nov 2004 12:10:35 +0100 |
User-agent: |
Mutt/1.4.1i |
Applied to branch-2-0 and HEAD.
2004-10-30 Ralf Wildenhues <address@hidden>
* tests/defs.m4sh (func_exec): `shift'ing when there is nothing
to shift is non-portable.
Index: tests/defs.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/defs.m4sh,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 defs.m4sh
--- tests/defs.m4sh 7 Oct 2004 02:46:39 -0000 1.1.2.2
+++ tests/defs.m4sh 1 Nov 2004 11:03:47 -0000
@@ -284,7 +284,8 @@
if eval $my_program $my_exp_output; then :
else
- shift; shift
+ shift
+ test "x$1" = x || shift
func_error "$0: cannot execute $my_program address@hidden"
# Simple check to see if they are superuser.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Do not shift empty cmdline,
Ralf Wildenhues <=