Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [Bug] Exiting shell from function called by trap handler always produces status 0
- X-seq: zsh-workers 43663
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxx>
- Subject: Re: [Bug] Exiting shell from function called by trap handler always produces status 0
- Date: Tue, 9 Oct 2018 14:43:11 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181009134314euoutp02d69354283e101aa8916c8432b929b3ef~b9I9bBUB60896608966euoutp02b
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539092594; bh=PFu/P2r2yRKMyDkph2VEVlYxfeUEAy+9SNflYoNHcdo=; h=Subject:From:To:Date:In-Reply-To:References:From; b=Gm2rEbDgcK+q1L4JOebtHrDux17Eoe/BdRsJh+5Rv54Q7AOz8e5R4tK2tKieCqfcC 0PJF2vr3XrW6oKSEK2H9GOBbSCeIsCCQunffEYjI1j3WcChwBHrdFax7Gd96G4hRGG 1q0LjeRVXrcbNWuiDKQef3kEO7rspyERKJUF3umw=
- In-reply-to: <1539092351.3163513.1535891128.20DDCB34@webmail.messagingengine.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20181009012624epcas1p44f2ae223f663713a980af4be735e5a3f@epcas1p4.samsung.com> <a5934536-7982-c434-d98d-2c07d66b0739@inlv.org> <20181009084918eucas1p27dedda10d51beb773ba9175967912d2c~b5IUtvcVK3037630376eucas1p2R@eucas1p2.samsung.com> <205ea5e4-4dc9-2ebf-9437-0822195e1a9a@inlv.org> <20181009131646eucas1p2eb07d8fa34e97de25db60d6a56c584a4~b8x2n0O1S2407324073eucas1p2z@eucas1p2.samsung.com> <1539092351.3163513.1535891128.20DDCB34@webmail.messagingengine.com>
On Tue, 2018-10-09 at 13:39 +0000, Daniel Shahaf wrote:
> Peter Stephenson wrote on Tue, 09 Oct 2018 14:16 +0100:
> A function-local 'static' (below) is implicitly initialized to 0, but
> a non-static global is not implicitly initialized.
If that's really the case then the entire shell (look around at other
cases), and pretty much every other non-trivial programme I've ever
written, is fundamentally broken. I'm not going to try to fix that now.
I can't quote chapter and verse but in all interesting cases they're
initialised to zero.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author