From owner-freebsd-current Thu Jul 27 23: 7:44 2000 Delivered-To: freebsd-current@freebsd.org Received: from light.imasy.or.jp (light.imasy.or.jp [202.227.24.4]) by hub.freebsd.org (Postfix) with ESMTP id DCAE637B50D; Thu, 27 Jul 2000 23:07:27 -0700 (PDT) (envelope-from ume@freebsd.org) Received: (from uucp@localhost) by light.imasy.or.jp (8.9.3+3.2W/3.7W-light) with UUCP id PAA07593; Fri, 28 Jul 2000 15:07:25 +0900 (JST) (envelope-from ume@freebsd.org) Received: from localhost (IDENT:YEaZ6pD+f2WUNck5XEmoSFG9VYQ9KAUDInsKkOpSjcys3L50hM6Z5+fkKlq2cvRf@peace.mahoroba.org [2001:200:301:0:200:f8ff:fe05:3eae]) by mail.mahoroba.org (8.11.0/3.7W-chaos) with ESMTP id e6S66Sh18539; Fri, 28 Jul 2000 15:06:28 +0900 (JST) (envelope-from ume@freebsd.org) Date: Fri, 28 Jul 2000 15:06:27 +0900 (JST) Message-Id: <20000728.150627.74708840.ume@mahoroba.org> To: kuriyama@FreeBSD.org Cc: cracauer@FreeBSD.org, FreeBSD-current@FreeBSD.org Cc: ume@freebsd.org Subject: Re: /bin/sh dumps core with here-document of 8bit text From: Hajimu UMEMOTO In-Reply-To: <7mr98fq7b4.wl@waterblue.imgsrc.co.jp> References: <7mr98fq7b4.wl@waterblue.imgsrc.co.jp> X-Mailer: xcite1.20> Mew version 1.95b38 on Emacs 20.6 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On Fri, 28 Jul 2000 12:09:51 +0900 >>>>> Jun Kuriyama 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