[Toybox] printenv -0

Rob Landley rob at landley.net
Tue Nov 17 12:01:30 PST 2020


On 11/17/20 12:06 PM, enh via Toybox wrote:
> https://github.com/landley/toybox/commit/52bbc1e0a410b44a926b04aaae3b00f9f50da81e
> seems to have broken `printenv -0`. (`printenv --null` still works.)
> 
> /tmp/toybox$ ./toybox printenv --null LOGNAME | xxd
> 00000000: 656e 6800                                enh.
> /tmp/toybox$ ./toybox printenv -0 LOGNAME | xxd
> printenv: Unknown option '0' (see "printenv --help")
> 
> since printenv doesn't have other options, the workaround used in env
> doesn't seem to apply...

Huh. (I need to fill out the test suite...)

Fixed it by cheating. Try now?

Thanks,

Rob



More information about the Toybox mailing list