Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jul 2009 19:30:03 GMT
From:      Valentin Davydov <sp@m.davydov.spb.su>
To:        freebsd-standards@FreeBSD.org
Subject:   Re: bin/25542: sh(1) null char in quoted string
Message-ID:  <200907271930.n6RJU3VS005183@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/25542; it has been noted by GNATS.

From: Valentin Davydov <sp@m.davydov.spb.su>
To: bug-followup@FreeBSD.org, sp@m.davydov.spb.su
Cc: Jilles Tjoelker <jilles@stack.nl>
Subject: Re: bin/25542: sh(1) null char in quoted string
Date: Mon, 27 Jul 2009 22:50:54 +0400 (MSD)

 At Sat, 4 Apr 2009 14:41:43 +0200, Jilles Tjoelker wrote:
 >Considering that fixing this would be a lot of work and cannot be done
 >completely (for example, argument strings and environment variables
 >cannot contain '\0'), I think it is best to close this.
 
 I think, at least documentation issue mentioned in the original PR 25542
 can be corrected easy. Here is the patch:
 
 --- src/bin/sh/sh.1.orig        2007-12-05 17:29:07.000000000 +0300
 +++ src/bin/sh/sh.1     2009-07-27 22:36:39.000000000 +0400
 @@ -2381,4 +2381,6 @@
  .Sh BUGS
  The
  .Nm
 -utility does not recognize multibyte characters.
 +utility does not recognize multibyte characters.
 +ASCII <NULL> character in input strings, parameters etc. can be mishandled by
 +.Nm .
 



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