zsh-users
 help / color / mirror / code / Atom feed
* Suppress print_exit_value for single function
@ 2018-04-29 18:42 Sebastian Gniazdowski
  2018-04-29 19:02 ` Bart Schaefer
  2018-05-05 15:10 ` Daniel Shahaf
  0 siblings, 2 replies; 7+ messages in thread
From: Sebastian Gniazdowski @ 2018-04-29 18:42 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

Hello,
in a 1-second sched function, I do:

__ret=$?
...
return $__ret

This solves $? malforming by background task. However, for `setopt
print_exit_value', this leads to constant "zsh: Exit 1" message, every
second.

Can I block `setopt print_exit_value' effects for this sched function or to
all sched functions in general? I think a feature could be added for this,
it looks very reasonable and useful.

-- 
Best regards,
Sebastian Gniazdowski

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-05-05 16:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-29 18:42 Suppress print_exit_value for single function Sebastian Gniazdowski
2018-04-29 19:02 ` Bart Schaefer
2018-04-30  2:21   ` Sebastian Gniazdowski
2018-04-30  2:23     ` Sebastian Gniazdowski
2018-05-04 16:29   ` Sebastian Gniazdowski
2018-05-05 15:10 ` Daniel Shahaf
2018-05-05 16:11   ` Sebastian Gniazdowski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).