From: Gary V. Vaughan Date: Fri, 8 Oct 2004 12:40:08 +0000 (+0000) Subject: * config/general.m4sh (func_verbose): Work around a bash bug in X-Git-Tag: release-1-9f~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7273fe62a7f556ce55cabf7bdf169786049daa5a;p=thirdparty%2Flibtool.git * config/general.m4sh (func_verbose): Work around a bash bug in shell functions. --- diff --git a/ChangeLog b/ChangeLog index dfe8de0aa..79b43033a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2004-10-07 Ralf Wildenhues +2004-10-08 Gary V. Vaughan + + * config/general.m4sh (func_verbose): Work around a bash bug in + shell functions. + +2004-10-07 Ralf Wildenhues * tests/sh.test: Remove tests which fail on AS_SHELL_SANITIZE from autoconf >= 2.59. diff --git a/config/general.m4sh b/config/general.m4sh index 9aa627746..d5eab8587 100644 --- a/config/general.m4sh +++ b/config/general.m4sh @@ -109,6 +109,11 @@ func_echo () func_verbose () { $opt_verbose && func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : } # func_error arg...