From: Wayne Davison <wayned@users.sourceforge.net>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh Workers <zsh-workers@sunsite.dk>
Subject: Re: r problem
Date: Fri, 14 Sep 2001 23:26:24 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.33L2.0109142322220.27471-100000@phong.blorf.net> (raw)
In-Reply-To: <1010915044927.ZM986@candle.brasslantern.com>
On Sat, 15 Sep 2001, Bart Schaefer wrote:
> It's just a hash lookup:
Excellent. That saves me some poking around that I hadn't gotten around
to doing. Here's a patch that seems to fix things up quite well.
..wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: Src/hist.c
--- Src/hist.c 2001/09/13 18:19:11 1.32
+++ Src/hist.c 2001/09/15 06:22:08
@@ -989,14 +989,20 @@
if (isset(HISTNOSTORE)) {
char *b = getjobtext(prog, NULL);
- if (*b == 'b' && strncmp(b, "builtin ", 8) == 0)
+ int saw_builtin;
+ if (*b == 'b' && strncmp(b,"builtin ",8) == 0) {
b += 8;
- if (*b == 'h' && strncmp(b, "history", 7) == 0
- && (!b[7] || b[7] == ' '))
+ saw_builtin = 1;
+ } else
+ saw_builtin = 0;
+ if (*b == 'h' && strncmp(b,"history",7) == 0 && (!b[7] || b[7] == ' ')
+ && (saw_builtin || !shfunctab->getnode(shfunctab,"history")))
return 1;
- if (*b == 'r' && (!b[1] || b[1] == ' '))
+ if (*b == 'r' && (!b[1] || b[1] == ' ')
+ && (saw_builtin || !shfunctab->getnode(shfunctab,"r")))
return 1;
- if (*b == 'f' && b[1] == 'c' && b[2] == ' ' && b[3] == '-') {
+ if (*b == 'f' && b[1] == 'c' && b[2] == ' ' && b[3] == '-'
+ && (saw_builtin || !shfunctab->getnode(shfunctab,"fc"))) {
b += 3;
do {
if (*++b == 'l')
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
prev parent reply other threads:[~2001-09-15 6:26 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
2001-09-15 6:26 ` Wayne Davison [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=Pine.LNX.4.33L2.0109142322220.27471-100000@phong.blorf.net \
--to=wayned@users.sourceforge.net \
--cc=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).