bin/25542: /bin/sh: null char in quoted string

Volker volker at vwsoft.com
Sat Jan 26 03:50:04 PST 2008


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

From: Volker <volker at vwsoft.com>
To: bug-followup at FreeBSD.org, val at sqdp.trc-net.co.jp
Cc:  
Subject: Re: bin/25542: /bin/sh: null char in quoted string
Date: Sat, 26 Jan 2008 12:42:16 +0100

 I've checked this on 6.2-REL and 7.0-PRE using:
 
 echo -e "\047O\000K\047" | od -c
 
 Result:
 
 0000000    '   O  \0   K   '  \n
 0000006
 
 This is what I expect to come out and it shows, sh is handling NULL
 bytes correctly ATM.
 
 Please follow-up with your opinion , otherwise this PR can be closed.


More information about the freebsd-standards mailing list