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

Re: [Bug] $jobstates does not work in $()



> 2022/03/04 8:07, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 
> On Thu, Mar 3, 2022 at 2:05 PM Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx> wrote:
>> 
>> I don't see how you could have provoked this, Peter, but in the latest sources, I'm seeing a test failure under i3 in Arch:
> 
> Try this:
> 
> diff --git a/Test/W03jobparameters.ztst b/Test/W03jobparameters.ztst
(snip)
> +  zpty_input 'zmodload zsh/parameter'

This doesn't work for me.

I think the problem is that MODULE_PATH is not imported by the zsh started
by zpty (for security).


diff --git a/Test/W03jobparameters.ztst b/Test/W03jobparameters.ztst
index 474adfaec..de3420038 100644
--- a/Test/W03jobparameters.ztst
+++ b/Test/W03jobparameters.ztst
@@ -37,6 +37,7 @@
 %test
 
   zpty_start
+  zpty_input "MODULE_PATH=$MODULE_PATH"
   zpty_input 'sleep 3 &'
   zpty_input 'print $jobstates'
   zpty_input '(print $jobstates)'





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