Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2000 15:06:27 +0900 (JST)
From:      Hajimu UMEMOTO <ume@freebsd.org>
To:        kuriyama@FreeBSD.org
Cc:        ume@freebsd.org
Subject:   Re: /bin/sh dumps core with here-document of 8bit text
Message-ID:  <20000728.150627.74708840.ume@mahoroba.org>
In-Reply-To: <7mr98fq7b4.wl@waterblue.imgsrc.co.jp>
References:  <7mr98fq7b4.wl@waterblue.imgsrc.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Fri, 28 Jul 2000 12:09:51 +0900
>>>>> Jun Kuriyama <kuriyama@FreeBSD.org> said:

kuriyama> Shell script which contains here-document of 8bit text sometimes dumps
kuriyama> core.  For example, please test this script in 4.1 or -current.

I'm using this for workaround on IMASY's main server.  3.5-RELEASE or
later have this problem.

--- bin/sh/parser.c.orig	Mon Mar 20 19:51:04 2000
+++ bin/sh/parser.c	Fri Jun 30 17:15:38 2000
@@ -909,9 +909,11 @@
 		for (;;) {	/* until end of line or end of word */
 			CHECKSTRSPACE(3, out);	/* permit 3 calls to USTPUTC */
 
+#if 0
 			if (c < 0 && c != PEOF)
 				synentry = CWORD;
 			else
+#endif
 				synentry = syntax[c];
 
 			switch(synentry) {

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@bisd.hitachi.co.jp  ume@FreeBSD.org
http://www.imasy.org/~ume/


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000728.150627.74708840.ume>