]> granicus.if.org Git - check/commit
use printf binary directly when forming expected test output
authorBranden Archer <brarcher@lexmark.com>
Sat, 26 Dec 2015 16:51:45 +0000 (11:51 -0500)
committerBranden Archer <brarcher@lexmark.com>
Sat, 26 Dec 2015 16:56:35 +0000 (11:56 -0500)
commit61dfe1c939a0314fabfe49ff6e703cf1ef284012
treeb00bbebf3ebab0d08720ef28f0c29652e9f1acc5
parent944ce221ddda2d160e2795772807be8d6bba2017
use printf binary directly when forming expected test output

It was observed on Lubuntu that the sh built-in print does not
escape hex as expected. For example, the following is expected:

$ printf "hi\x9there\n"
hi there
$

However, on Lubuntu the built-in printf command in sh produces the
following:

$ sh -c 'printf "hi\x9there\n'
hi\x9there
$

To avoid this, use the printf binary, which env will find and
invoke.
NEWS
tests/test_output_strings