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

Jilles Tjoelker jilles at
Sat Apr 4 05:50:04 PDT 2009

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

From: Jilles Tjoelker <jilles at>
To: bug-followup at
Subject: Re: bin/25542: sh(1) null char in quoted string
Date: Sat, 4 Apr 2009 14:41:43 +0200

 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. sh(1) is meant
 to process text, not binary data. Trying to process binary data may or
 will also cause problems if the locale character set is set to UTF-8.
 As a clarification, this PR is about '\0' bytes in shell scripts, not
 about making the echo builtin produce '\0' characters. The latter
 feature works fine and is good.
 Jilles Tjoelker

More information about the freebsd-standards mailing list