From owner-freebsd-current Fri Jul 28 6:15:35 2000 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 542) id 03F1A37B957; Fri, 28 Jul 2000 06:15:34 -0700 (PDT) Date: Fri, 28 Jul 2000 06:15:33 -0700 From: "Andrey A. Chernov" To: Martin Cracauer Cc: Hajimu UMEMOTO , kuriyama@FreeBSD.ORG, cracauer@FreeBSD.ORG, FreeBSD-current@FreeBSD.ORG Subject: Re: /bin/sh dumps core with here-document of 8bit text Message-ID: <20000728061533.A49657@freebsd.org> References: <7mr98fq7b4.wl@waterblue.imgsrc.co.jp> <20000728.150627.74708840.ume@mahoroba.org> <20000728094707.A10655@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20000728094707.A10655@cons.org>; from cracauer@cons.org on Fri, Jul 28, 2000 at 09:47:08AM +0200 Organization: Biomechanoid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message