diff options
author | Jim Meyering <meyering@redhat.com> | 2012-05-08 10:55:21 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-05-08 11:03:02 +0200 |
commit | a396e729684ec533c504dd3e619f669834821688 (patch) | |
tree | c141ff77d0a5ef54f12f0127695bc5714fd8353e /tests | |
parent | 7d3ed9f612cfad25a8eb39cde81c8cf6bc422f64 (diff) | |
download | gnulib-a396e729684ec533c504dd3e619f669834821688.tar.gz |
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 <Tim.Mooney@ndsu.edu>.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/init.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/init.sh b/tests/init.sh index ae867144d0..d5cd294554 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. |