On Fri, 17 Jun 2011, Denys Vlasenko wrote:
> On Fri, Jun 17, 2011 at 12:27 PM, Bernd Petrovitsch
> <[email protected]> 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
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox