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

Re: Suppress print_exit_value for single function



PS. A test code:

fun() { sched +1 "fun"; setopt localoptions no_print_exit_value; return 1; }
setopt printexitvalue; fun


On 30 April 2018 at 04:21, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
wrote:

> 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
>>
>
> I still see the messages with this line added before return
>
> --
> Best regards,
> Sebastian Gniazdowski
>


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