[Toybox] Test design issue.

Rob Landley rob at landley.net
Mon Apr 24 15:18:32 PDT 2017


I want an ls.test checking "ls -b" via some variant of:

mkdir blah
touch blah/"$(echo -e "$(X=0;while [ $X -lt 255 ];do X=$(($X+1));[ $X
-eq 47 ]&& continue;printf '\\x%02x' $X; done)")"
ls -b blah

And then make sure it's escaping everything it should, but the ubuntu
14.04 ls -b  and toybox's ls -b have one difference: for ascii 27 (the
escape char) ubuntu says "\033" and toybox says "\e".

I guess I can break it into 3 tests with the middle one SKIP_HOST? Seems
awkward...

Rob



More information about the Toybox mailing list