Date: Sat, 4 Apr 2009 12:50:04 GMT From: Jilles Tjoelker <jilles@stack.nl> To: freebsd-standards@FreeBSD.org Subject: Re: bin/25542: sh(1) null char in quoted string Message-ID: <200904041250.n34Co4Ej028406@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: Jilles Tjoelker <jilles@stack.nl> To: bug-followup@FreeBSD.org Cc: 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904041250.n34Co4Ej028406>