From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: tg@bosun.bm.lu.se (Tomas Gradin)
Cc: zsh-workers@math.gatech.edu, tg@bosun.bm.lu.se
Subject: Re: bug in zsh 3.0-pre6?
Date: Tue, 13 Aug 1996 20:34:22 +0200 (MET DST) [thread overview]
Message-ID: <199608131834.UAA01455@bolyai.cs.elte.hu> (raw)
In-Reply-To: <199608131709.TAA04125@bosun.bm.lu.se> from Tomas Gradin at "Aug 13, 96 07:09:59 pm"
> Hello,
>
> it seems that it has a problem with 8-bit characters immediately following a
> redirection (like |, > etc.).
>
> If I do:
>
> cat>é
>
> ..I get:
>
> zsh: Oops. You discovered a bug in hungetc
>
> If I precede the 'é' with a space, everything works.
Fortunately, this is not a real bug, it's just a missing cast in a debug
test.
Zoltan
*** Src/hist.c 1996/08/12 01:36:46 2.24
--- Src/hist.c 1996/08/13 18:32:08
***************
*** 521,527 ****
if (hptr == chline)
zerr("hungetc attempted at buffer start", NULL, 0);
else {
! if (hptr[-1] != c)
/* Someone probably tried to unget something which is *
* not returned by hgetc. */
zerr("Oops. You discovered a bug in hungetc", NULL, 0);
--- 521,527 ----
if (hptr == chline)
zerr("hungetc attempted at buffer start", NULL, 0);
else {
! if (hptr[-1] != (char) c)
/* Someone probably tried to unget something which is *
* not returned by hgetc. */
zerr("Oops. You discovered a bug in hungetc", NULL, 0);
next prev parent reply other threads:[~1996-08-13 18:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-13 17:09 Tomas Gradin
1996-08-13 18:34 ` Zoltan Hidvegi [this message]
1996-08-13 19:11 ` Zefram
1996-08-13 19:59 ` Bart Schaefer
1996-08-13 20:06 ` Richard Coleman
1996-08-13 20:22 ` Zoltan Hidvegi
1996-08-13 20:37 ` Zefram
1996-08-13 20:45 ` Zoltan Hidvegi
1996-08-13 20:15 ` Zoltan Hidvegi
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=199608131834.UAA01455@bolyai.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=tg@bosun.bm.lu.se \
--cc=zsh-workers@math.gatech.edu \
/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).