bin/25542: sh(1) null char in quoted string

Valentin Davydov sp at m.davydov.spb.su
Mon Jul 27 19:30:04 UTC 2009


The following reply was made to PR bin/25542; it has been noted by GNATS.

From: Valentin Davydov <sp at m.davydov.spb.su>
To: bug-followup at FreeBSD.org, sp at m.davydov.spb.su
Cc: Jilles Tjoelker <jilles at 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 .
 


More information about the freebsd-standards mailing list