Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Test release: 5.8.1.2-test



> 2022/04/13 3:40, Axel Beckert <abe@xxxxxxxxxxxxxxx> wrote:

>> +  if ! ( zmodload -s zsh/system && zmodload -s zsh/zselect ); then

Calling zmodload in a subshell (...) does not load the module to the main zsh.


diff --git a/Test/V14system.ztst b/Test/V14system.ztst
index 100daab08..ffdb730a4 100644
--- a/Test/V14system.ztst
+++ b/Test/V14system.ztst
@@ -5,10 +5,10 @@
   if zmodload -s zsh/system && zmodload -s zsh/zselect; then
     tst_dir=V14.tmp
     mkdir -p -- $tst_dir
+    : > $tst_dir/file # File on which to acquire flock.
   else
     ZTST_unimplemented='the zsh/system and zsh/zselect modules are not available'
   fi
-  : > $tst_dir/file # File on which to acquire flock.
 
 %test
 







Messages sorted by: Reverse Date, Date, Thread, Author