From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Workers <zsh-workers@sunsite.dk>
Subject: Re: r problem
Date: Sat, 15 Sep 2001 04:49:27 +0000 [thread overview]
Message-ID: <1010915044927.ZM986@candle.brasslantern.com> (raw)
In-Reply-To: <Pine.LNX.4.33L2.0109131734180.19446-100000@phong.blorf.net>
On Sep 13, 5:52pm, Wayne Davison wrote:
}
} One potential solution to this would be to change the history-line-drop
} code to lookup "r" in a function list and avoid dropping "r" (but not
} "builtin r") if we find it. I don't know the function code well enough
} to know if there is an inexpensive call that should_ignore_line() could
} call for this or not.
It's just a hash lookup:
if (shfunctab->getnode(shfunctab, "r")) {
/* It's a function */
}
As it would only be happening after the command name had already been
compared to (fc|history|r), I don't think it's prohibitively expensive,
though it's exactly what exec.c is going to be doing a few instructions
later.
--
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
next prev parent reply other threads:[~2001-09-15 4:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-12 11:07 Tanaka Akira
2001-09-12 16:03 ` Bart Schaefer
2001-09-13 18:37 ` Wayne Davison
2001-09-14 0:52 ` Wayne Davison
2001-09-15 4:49 ` Bart Schaefer [this message]
2001-09-15 6:26 ` Wayne Davison
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=1010915044927.ZM986@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@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).