rewriting config_*, xmalloc_fget*

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Fri Jun 17 12:59:55 UTC 2011


On Fri, 17 Jun 2011, Bernd Petrovitsch wrote:
>
> I wouldn't call
> echo -n $quoted | tr "\000" "\012"
> (which converts \0 into \n) impossible and I consider "tr" a standard
> utility.

What happens if you try it this way:

	$ echo -n "$quoted" | tr '\0' '\n'

or this way:

	$ tr '\0' '\n' <<-EOF
		$quoted
	EOF


Cheers,

-- 
Cristian


More information about the busybox mailing list