bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax Question...


From: Stephane CHAZELAS
Subject: Re: Syntax Question...
Date: Sun, 02 Oct 2011 21:15:17 -0000
User-agent: slrn/pre1.0.0-18 (Linux)

2011-08-14, 02:43(+00), Michael Witten:
[...]
>> Please read BashFAQ/006: http://mywiki.wooledge.org/BashFAQ/006
>
> "no force in the universe can put NUL bytes into shell strings usefully"
>
> Ain't that the goddamn Truth!

No, zsh supports NUL bytes in its strings happily. It's even in
the default $IFS. Where NUL bytes can't go, it's in arguments
to commmands, environment variables, filenames... But I can't
see why a shell variable couldn't contain NUL bytes, it's even a
good thing for both those reasons as you can use that character
to safely separate filenames, arguments, env vars... See for
instance the -0 option of many GNU utilities.

-- 
Stephane



reply via email to

[Prev in Thread] Current Thread [Next in Thread]