|I was wrong when I said XEmacs' configure indiscriminately uses
|`unset'. In fact it does something like this:
|
|
|if test -n "$ZSH_VERSION"; then
| dnl zsh's Bourne shell emulation options
| setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
| setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
| setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
| setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
| dnl zsh-3.1-beta drops core on the following
| dnl unset CDPATH
Do you really care about betas? In fact I have a similar patch for
Autoconf, but I have not sent it yet because my zsh (3.1.6-pws16)
dumps core on `trap '' 1 2 15' :)
BTW, why do you use setopt, which list changes, and not "emulate sh".
Also, I need to set NULLCMD=:, otherwise zsh is stuck on `> foo'. How
come you don't need it?
|elif test -n "$BASH_VERSION"; then
| dnl Use Posix mode with bash
| set -o posix
Hm, good to know, thanks!
|I know fanatics who do
|
|mv /bin/zsh /bin/sh
But then zsh it automatically in `emulate sh' mode, so it should make
no difference.
Akim