Re: /bin/sh dumps core with here-document of 8bit text

[ Available lists | Index of freebsd-current | Month of Jul 2000 | Week of 28 Jul 2000 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Andrey A. Chernov <ache@freebsd.org>
Date
28 Jul 2000 06:15:35
Subject
Re: /bin/sh dumps core with here-document of 8bit text
Message-ID
20000728061533.A49657@freebsd.org


[ Hide this part ]
On Fri, Jul 28, 2000 at 09:47:08AM +0200, Martin Cracauer wrote:
> ! if (c >= CTLESC && c <= CTLQUOTEMARK) {
> synentry = CWORD;
> ! fprintf(stderr,
> ! "Warning: internal control character in "
> ! "literal text, using '?' instead\n");
> ! c = '?';
> ! }


I disagree. It is not the fix, just admitting the bug. Better try to fix it via
some escaping of control characters via some prefix char. Bash is 8bit clean
in that place, f.e.

--
Andrey A. Chernov
<ache@nagual.pp.ru>
http://ache.pp.ru/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Elapsed time: 0.096 seconds