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

Strange behavior of $jobstates



I found a strange behavior of $jobstates. When I pipe the output of
echo $ jobstates,
its output is empty. This has occurred for zsh 5.6.2 (x86_64-apple-darwin18.0.0)
installed on my mac with homebrew.

% sleep 30
sleep 30
^Z
zsh: suspended  sleep 30
% echo $jobstates
suspended:+:16815=suspended
% echo $jobstates | cat

% echo $jobstates
suspended:+:16815=suspended

This does not occur for zsh 5.4.2 (x86_64-ubuntu-linux-gnu) on ubuntu.



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