Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] K01nameref.ztst: set $module_path in child zsh
- X-seq: zsh-workers 54848
- From: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] K01nameref.ztst: set $module_path in child zsh
- Date: Wed, 24 Jun 2026 18:03:33 +0900
- Archived-at: <https://zsh.org/workers/54848>
- List-id: <zsh-workers.zsh.org>
Test K01nameref fails if not yet installed:
% mkdir -p /a/new/dir
% ./configure --prefix=/a/new/dir
% make
% TESTNUM=K01 make check
Then the test fails in the chunk
'Only string parameters are promoted to named directories'
error output:
zsh: failed to load module `zsh/parameter': /a/new/dir/lib/zsh/5.9.999.3-test/zsh/parameter.so: cannot open shared object file: No such file or directory
This is because $module_path is not passed to the zsh started
at K01nameref.ztst:1578:
PS1= $ZTST_testdir/../Src/zsh -fis <<<'
diff --git a/Test/K01nameref.ztst b/Test/K01nameref.ztst
index c0afaa827..952bbd30c 100644
--- a/Test/K01nameref.ztst
+++ b/Test/K01nameref.ztst
@@ -1576,6 +1576,7 @@ F:previously this could create an infinite recursion and crash
# Testing named directories requires to run in interactive mode
PS1= $ZTST_testdir/../Src/zsh -fis <<<'
+ [[ -d Modules/zsh ]] && module_path=( $PWD/Modules )
typeset v1=/1 v2
typeset -n r1=v1 r2
{ echo "~v1:" ~v1 } 2>&1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author