Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unbounded recursive call in a shell script crashes zsh
- X-seq: zsh-workers 40954
- From: Jérémie Roquet <jroquet@xxxxxxxxxxxxx>
- To: Kamil Dudka <kdudka@xxxxxxxxxx>
- Subject: Re: unbounded recursive call in a shell script crashes zsh
- Date: Tue, 11 Apr 2017 15:29:09 +0200
- Cc: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=LTYVj+vKOFaDV0Ja5uMnggkmqmiQbKrjtlCDpIbT3Tw=; b=mndd/BitRSr0zBpYriqmvKQ25bhDzS5/b/JWvJ9SOTtFGV/Q6cFwg/hVNII4lMGRbh 4M1w7LWbt3SypaQbj4MaPJaHogBxSqn/vWKo1IbTSoUPSbhcJYj03DIujnJzSfiWvNCg 8doW3N5yP+nTAHDtCC+pJ+fOZIwZjVvcT9q0FtPHLJes0U7XTSwrEF2i3mzTWgbUxOWl mcE7xzZIJQMSs8ObqZXVgFbMzeZtlO8pk0BnlAyOcp63AyPkLD59D55zVzQCrxaMk6eG dB59Wi+zFnbfOXEu6zP9a4izWvZGBhAAA6bSV9lqy88u9GpQorwK+G/BeWBhgKHbh9Q8 tkBQ==
- In-reply-to: <2960832.nVDpiBkaWZ@kdudka-nb>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <2960832.nVDpiBkaWZ@kdudka-nb>
- Sender: arkanosis@xxxxxxxxx
2017-04-11 15:00 GMT+02:00 Kamil Dudka <kdudka@xxxxxxxxxx>:
> The following shell script crashes zsh (tested with zsh-5.3.1-90-g63f086d):
>
> function foo() {
> if true; then
> foo
> fi
> }
>
> foo
That's interesting:
$ zsh -c 'foo() { foo }; foo'
foo: maximum nested function level reached
$ zsh -c 'foo() { if true; then foo; fi }; foo'
Segmentation fault
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author