zsh-workers
 help / color / mirror / code / Atom feed
* unbounded recursive call in a shell script crashes zsh
@ 2017-04-11 13:00 Kamil Dudka
  2017-04-11 13:29 ` Jérémie Roquet
  0 siblings, 1 reply; 17+ messages in thread
From: Kamil Dudka @ 2017-04-11 13:00 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-04-19 21:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 13:00 unbounded recursive call in a shell script crashes zsh Kamil Dudka
2017-04-11 13:29 ` Jérémie Roquet
2017-04-11 14:01   ` Jérémie Roquet
2017-04-11 14:38     ` Kamil Dudka
2017-04-12  2:12       ` Bart Schaefer
2017-04-12  7:30         ` Kamil Dudka
2017-04-12 22:11           ` Bart Schaefer
2017-04-13 14:30             ` Kamil Dudka
2017-04-13 15:21               ` Jérémie Roquet
2017-04-13 16:01                 ` Jérémie Roquet
2017-04-15 16:14                   ` Bart Schaefer
2017-04-16 18:56                     ` Daniel Shahaf
2017-04-16 21:00                       ` Bart Schaefer
2017-04-16 23:12                         ` Daniel Shahaf
2017-04-17  0:17                           ` Bart Schaefer
2017-04-18 13:54                   ` Kamil Dudka
2017-04-19 21:01                     ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).