From owner-freebsd-bugs Mon Oct 29 21:40: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E9BF937B406 for ; Mon, 29 Oct 2001 21:40:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9U5e0p62362; Mon, 29 Oct 2001 21:40:00 -0800 (PST) (envelope-from gnats) Received: from mail.svzserv.kemerovo.su (mail.svzserv.kemerovo.su [213.184.65.66]) by hub.freebsd.org (Postfix) with ESMTP id 6781137B408 for ; Mon, 29 Oct 2001 21:36:22 -0800 (PST) Received: (from root@localhost) by mail.svzserv.kemerovo.su (8.11.6/8.11.6) id f9U5aJR41685; Tue, 30 Oct 2001 12:36:19 +0700 (NKZ) (envelope-from sa) Message-Id: <200110300536.f9U5aJR41685@mail.svzserv.kemerovo.su> Date: Tue, 30 Oct 2001 12:36:19 +0700 (NKZ) From: eugen@grosbein.pp.ru To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/31627: /bin/sh's hangling of some characters is wrong - loss of data Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31627 >Category: bin >Synopsis: /bin/sh's hangling of some characters is wrong - loss of data >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 29 21:40:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 4.4-STABLE i386 >Organization: ISP Svyaz Service >Environment: System: FreeBSD mail.svzserv.kemerovo.su 4.4-STABLE FreeBSD 4.4-STABLE #0: Thu Oct 11 13:22:30 NKZS 2001 sa@mail.svzserv.kemerovo.su:/usr/obj/usr/src/sys/MAIL i386 >Description: /bin/sh 'eats' some characters resulting in loss of data >How-To-Repeat: run this script using sh -x: #!/bin/sh -x string=`printf "test\201string"` echo $string | hd You will see that a symbol '' (dec 129, hex 0x81, oct 0201) is missing in echo's parameter and hd approves this. This also leads to impossibility for shell script to process a file with a name containing this symbol if it's created by another program. >Fix: Unknown for me. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message