From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: side effect of promptsubst.
Date: Thu, 4 May 2000 10:41:29 +0200 (MET DST) [thread overview]
Message-ID: <200005040841.KAA20875@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Tanaka Akira's message of 04 May 2000 14:24:33 +0900
Tanaka Akira wrote:
> Z(4):akr@serein% zsh -f
> serein% setopt promptsubst
> serein% print -lr - '
> quote> aaaaaaaaaaaaaaaaaaaaaaaaaaabcdddddddd'
>
> aaaaaaaaaaaaaaaaaaaaaaaaaaab
> serein%
>
> The argument is truncated. This problem doesn't arised without
> promptsubst.
Missing save/restore for one of the variables used during lexing.
Bye
Sven
Index: Src/lex.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/lex.c,v
retrieving revision 1.3
diff -u -r1.3 lex.c
--- Src/lex.c 2000/04/06 17:21:52 1.3
+++ Src/lex.c 2000/05/04 08:41:03
@@ -178,6 +178,7 @@
char *yytext;
char *bptr;
int bsiz;
+ int len;
short *chwords;
int chwordlen;
int chwordpos;
@@ -236,6 +237,7 @@
ls->yytext = yytext;
ls->bptr = bptr;
ls->bsiz = bsiz;
+ ls->len = len;
ls->chwords = chwords;
ls->chwordlen = chwordlen;
ls->chwordpos = chwordpos;
@@ -296,6 +298,7 @@
yytext = lstack->yytext;
bptr = lstack->bptr;
bsiz = lstack->bsiz;
+ len = lstack->len;
chwords = lstack->chwords;
chwordlen = lstack->chwordlen;
chwordpos = lstack->chwordpos;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-05-04 8:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-04 8:41 Sven Wischnowsky [this message]
2000-05-04 8:53 ` Tanaka Akira
2000-05-04 10:39 Sven Wischnowsky
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=200005040841.KAA20875@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).