rewriting config_*, xmalloc_fget*
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Fri Jun 17 15:16:13 UTC 2011
On Fri, 17 Jun 2011, Denys Vlasenko wrote:
> On Fri, Jun 17, 2011 at 12:27 PM, Bernd Petrovitsch
> <bernd at petrovitsch.priv.at> wrote:
> > And I never read/tries/played with bash and it's source (or other
> > shells) to see if
> > echo ${quoted//\000/\012}
> > (or something similar) does the same.
>
> I think almost all shell implementations use C strings for variables.
> Therefore variables can't contain NUL.
I frequently use:
$ tr '\0' ' ' </proc/<pid>/cmdline
and that works for me as I expect it to :)
Cheers,
--
Cristian
More information about the busybox
mailing list