Hi Martin,

On Sat, Jul 09, 2005 at 12:49:11PM +0200, Martin Dickopp wrote:
> dash does not handle NUL characters in scripts gracefully. To reproduce
> this, create the following script:
> 
>   echo 'foo^@'
>   echo 'bar^@'
>   echo 'baz^@'
> 
> The characters depicted here as ^@ should be single NUL characters.
> 
> When run in dash, this script generates the following output:
> 
>   foo
>   bar
>   t.sh: 5: Syntax error: Unterminated quoted string
> 
> (Please note that the third line is referred to as line 5, and the error
> message is also somewhat confusing.)
> 
> The code in input.c around line 304 as well as various comments indicate
> that the intention is that NUL characters are silently ignored, but it
> seems that this doesn't always work.

yes, I can reproduce this, and confirm that skipping NUL doesn't work
properly.  I'll take a look and forward upstream.

Thanks, Gerrit.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to