Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Suppress print_exit_value for single function
- X-seq: zsh-users 23370
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Suppress print_exit_value for single function
- Date: Sun, 29 Apr 2018 20:42:43 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=AbVTwre+fX1Otl19hfLjgfPE7v+3KgCh6NsX2n7sozY=; b=JSayHnE4IF8SdFr4uDJ7me8QYM2BAFQ4UV7nfrrdHDVxvrWyqCOiesguGlca78VDEB LdnVvyGNehpxkQ6Cu6Xi9Vml68oJ4JU93XSk3mjpHLxLL3EWlbQE1OyW0Tz9M/NiLcs7 JuubBt2NTF0dLcbJPmrVFGEH4oo+b5/bG9XYE/CmGGzbHLiEN2wwXljydHq6DrIw8SKm wU3QGa9j8rw/EiQWkK+Dcy/5pfwqIFnK3Bb2l0LRqr1qq5K7ypOYV7OgoOE7DU87PDB8 wNZzdeP4d5CLFKjEqsXdj/q0ag0bE4aeZSp5uDsQHfxRpD8KAjQ4QB4XkbDJfG9UpvtO EakA==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author