Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
unbounded recursive call in a shell script crashes zsh
- X-seq: zsh-workers 40953
- From: Kamil Dudka <kdudka@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: unbounded recursive call in a shell script crashes zsh
- Date: Tue, 11 Apr 2017 15:00:20 +0200
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=kdudka@xxxxxxxxxx
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com BCBDE2E6067
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BCBDE2E6067
- 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
The following shell script crashes zsh (tested with zsh-5.3.1-90-g63f086d):
function foo() {
if true; then
foo
fi
}
foo
Is it expected?
I tried to interpret the script with zsh-4.3.11 and it did not crash:
$ zsh /tmp/test.zsh
foo:1: job table full or recursion limit exceeded
The script is a minimal example taken out from a powerline sourced script,
for which the crash was originally reported at:
https://bugzilla.redhat.com/1441092
Kamil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author