From a396e729684ec533c504dd3e619f669834821688 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 May 2012 10:55:21 +0200 Subject: [PATCH] init.sh: don't let bash aliases interfere with tests * tests/init.sh: Undefine any pre-defined aliases if the selected shell is bash. This avoids problems for those who alias standard commands to non-conforming uses, like those reported in http://bugs.gnu.org/11256. Suggested by Tim Mooney . --- ChangeLog | 8 ++++++++ tests/init.sh | 3 +++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index db6b62086..268fbe57f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2012-05-08 Jim Meyering + + init.sh: don't let bash aliases interfere with tests + * tests/init.sh: Undefine any pre-defined aliases if the selected shell + is bash. This avoids problems for those who alias standard commands to + non-conforming uses, like those reported in http://bugs.gnu.org/11256. + Suggested by Tim Mooney . + 2012-05-07 Paul Eggert stdint: be more consistent with glibc, SunOS libc diff --git a/tests/init.sh b/tests/init.sh index ae867144d..d5cd29455 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -207,6 +207,9 @@ else fi fi +# If this is bash, turn off all aliases. +test -n "$BASH_VERSION" && unalias -a + test -n "$EXEEXT" && shopt -s expand_aliases # Enable glibc's malloc-perturbing option. -- 2.11.0