From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Bruno Bonfils <asyd@debian-fr.org>, zsh-users@sunsite.dk
Subject: Re: Problem with function
Date: Tue, 7 May 2002 15:03:36 +0000 [thread overview]
Message-ID: <1020507150337.ZM7109@candle.brasslantern.com> (raw)
In-Reply-To: <20020507100348.GA5344@syd-barrett.hash-group.net>
On May 7, 12:03pm, Bruno Bonfils wrote:
}
} mutt () {
} print -Pn "\e]0; Mutt\a"
} \mutt
} }
}
} the print are executed (and work with screen) but the zsh
} session crash :(
Using \mutt does NOT stop the mutt function from being called. It only
stops an *alias* for mutt from expanding, if you had one. Zsh crashes
because the heap overflows allocating memory for the infinitely recursive
function that you've written.
You want:
mutt () {
print -Pn "\e]0; Mutt\a"
command mutt
}
This is question 3.16 in the FAQ, by the way.
If you compiled zsh yourself, check out the --enable-max-function-depth
flag that you can pass to the configure script.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
prev parent reply other threads:[~2002-05-07 15:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-07 10:03 Bruno Bonfils
2002-05-07 10:16 ` Borsenkow Andrej
2002-05-07 15:03 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1020507150337.ZM7109@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=asyd@debian-fr.org \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).