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

print_exit_value unset in an scheduled function, yet still active



Hello,
func() { print $options[printexitvalue] $options[shglob]; false }
setopt printexitvalue; sched +0 func

Output:
off off
zsh: exit 1

setopt shglob; sched +0 func

Output:
off on
zsh: exit 1

So the printexitvalue is unset inside the scheduled function, yet it's
still being active (outside?).

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



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