]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: fix portability issue in new dd/ascii test
authorPádraig Brady <P@draigBrady.com>
Mon, 14 Jul 2014 01:19:31 +0000 (02:19 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 14 Jul 2014 01:24:59 +0000 (02:24 +0100)
commit39f79234a173c471ff20a0bb0e49cb47b5d96f3c
tree42f3665bd4c077774f99c3aacd77d91a3f9eb3aa
parent2419df4139e7ef90442bb3899ad9a4fc1c3c2ee3
tests: fix portability issue in new dd/ascii test

* tests/dd/ascii.sh: Quote so that '\\' is passed
to printf rather than a single '\', as that's not portable.
bash, dash, zsh and external solaris printf were seen to support
  printf '\%03o' 1 2
while ksh, freebsh shell and external GNU printf need the more portable
  printf '\\%03o' 1 2
Note we don't use env here to call the coreutils printf implementation,
as there are many printf calls, so relying on portable shell
implementations will be faster.
tests/dd/ascii.sh