diff options
author | Jim Meyering <meyering@redhat.com> | 2012-05-08 11:54:26 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-05-08 14:56:49 +0200 |
commit | a3a049672d410b1deba8f1537016f2ece42b4e88 (patch) | |
tree | 599a7f2477409312b2a75e54d36be8b4e33baa0b | |
parent | a396e729684ec533c504dd3e619f669834821688 (diff) | |
download | gnulib-a3a049672d410b1deba8f1537016f2ece42b4e88.tar.gz |
init.sh: explain why $EXEEXT support uses aliases rather than functions
* tests/init.sh: Add a comment.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | tests/init.sh | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2012-05-08 Jim Meyering <meyering@redhat.com> + init.sh: explain why EXEEXT support uses aliases rather than functions + * tests/init.sh: Add a comment. + 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 diff --git a/tests/init.sh b/tests/init.sh index d5cd294554..f525a7cab4 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -210,6 +210,11 @@ fi # If this is bash, turn off all aliases. test -n "$BASH_VERSION" && unalias -a +# Note that when supporting $EXEEXT (transparently mapping from PROG_NAME to +# PROG_NAME.exe), we want to support hyphen-containing names like test-acos. +# That is part of the shell-selection test above. Why use aliases rather +# than functions? Because support for hyphen-containing aliases is more +# widespread than that for hyphen-containing function names. test -n "$EXEEXT" && shopt -s expand_aliases # Enable glibc's malloc-perturbing option. |