Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2001 12:36:19 +0700 (NKZ)
From:      eugen@grosbein.pp.ru
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/31627: /bin/sh's hangling of some characters is wrong - loss of data
Message-ID:  <200110300536.f9U5aJR41685@mail.svzserv.kemerovo.su>

next in thread | raw e-mail | index | archive | help

>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




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