# HG changeset patch # User Jim Meyering # Date 1336467321 -7200 # Node ID a80277ccfb158f825d75d7cc95af54d78f79af39 # Parent 9ea40aad6df86e3674a8e62cab7e42d498006e9f 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 . diff --git a/ChangeLog b/ChangeLog --- 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 --- a/tests/init.sh +++ b/tests/init.sh @@ -207,6 +207,9 @@ 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.