Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Suppress print_exit_value for single function
- X-seq: zsh-users 23384
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Suppress print_exit_value for single function
- Date: Fri, 4 May 2018 18:29:44 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ji+pwNp8NFM8TL+GkH1eLyQhooRiTwQXyVU1hXkbnSc=; b=tpJwhed+vZ4Uv4yqMXhKZbWqUdeUL5WXd5CFG/dG1RUjbCZkkmvi/0QmLaNV5u5on2 qmCHGubNrp/WH7XaU8jfoWQ7NejK1ev3290oVEaEOBJvyCi5siEmV9Qdx+PjzozeSnYL hXNigr4hJupOrreQI0YaBIriVdyJQW7b0DHp884Ts7PGLoNWzC6eWxscrxQBG23SgdWX rbwSdPcH2stdNxShFrPWjzvG0vm9FxyccPmiaCRT+ioudRhAaoftdXpjSdmal+hhBTPe 2R8HKkL+I50M5XhkQ+EBrP4T4t41DIY2/XQjbyAeB+5CNd4kN4lKKs943v+4TuokSCGm uCgg==
- In-reply-to: <180429120250.ZM3463@torch.brasslantern.com>
- 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
- References: <CAKc7PVBUGJqa19ix_qwDE+mtvTwYfZPfQ4LPNfUT67jGtFZx7w@mail.gmail.com> <180429120250.ZM3463@torch.brasslantern.com>
On 29 April 2018 at 21:02, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Apr 29, 8:42pm, Sebastian Gniazdowski wrote:
> }
> } Can I block `setopt print_exit_value' effects for this sched function or
> to
> } all sched functions in general?
>
> You can always
>
> setopt localoptions no_print_exit_value
>
Can it be true that the C array of structures, `funcstack':
typedef struct funcstack *Funcstack;
will have something distinct for function ran from sched? The
print_exit_value code would be then able to easily check for this distinct
trait. I think all this is worth doing, not for aesthetics aspect, but to
allow background functions to maintain $? unchanged (and e.g. repeat
erroneous exit code). It is a poor situation currently, e.g. syntax
highlighting runs after key press and $? is lost, it cannot be directly
used at command line. Lets do something to address this, at least for sched.
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author