Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Test ./E03posix.ztst was expected to fail, but passed.
> 2022/03/17 0:30, I wrote:
>
> Please try the following patch.
>
> The patch for E03posix.ztst may not be necessary for fixing the
> current problem, but I think it is always safer to use 'zsh -f'.
The patch for E03posix.ztst (adding -f) is not necessary; if ARGV0=sh
and the shell is not interactive no initialization file will be sourced.
I will push the following patch for ztst.zsh.
Exporting MODULE_PATH has no effect since zsh will not import it
for security reason. If a child zsh (started during tests) needs
MODULE_PATH, then it must be set in the child explicitly.
I think the 'expected to fail' test must be run in UTF-8 locale;
I will send a patch in a separate post.
diff --git a/Test/ztst.zsh b/Test/ztst.zsh
index a59c06dcf..89fe69b5b 100755
--- a/Test/ztst.zsh
+++ b/Test/ztst.zsh
@@ -25,6 +25,7 @@ emulate -R zsh
# Ensure the locale does not screw up sorting. Don't supply a locale
# unless there's one set, to minimise problems.
[[ -n $LC_ALL ]] && LC_ALL=C
+[[ -n $LC_CTYPE ]] && LC_CTYPE=C
[[ -n $LC_COLLATE ]] && LC_COLLATE=C
[[ -n $LC_NUMERIC ]] && LC_NUMERIC=C
[[ -n $LC_MESSAGES ]] && LC_MESSAGES=C
@@ -36,8 +37,6 @@ typeset +x WORDCHARS
# Set the module load path to correspond to this build of zsh.
# This Modules directory should have been created by "make check".
[[ -d Modules/zsh ]] && module_path=( $PWD/Modules )
-# Allow this to be passed down.
-export MODULE_PATH
# We need to be able to save and restore the options used in the test.
# We use the $options variable of the parameter module for this.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author