]> git.ipfire.org Git - thirdparty/zstd.git/commit
'head -c BYTES' is non-portable. 1321/head
authorBjörn Ketelaars <bjorn.ketelaars@hydroxide.nl>
Sat, 30 Jun 2018 13:42:42 +0000 (15:42 +0200)
committerBjörn Ketelaars <bjorn.ketelaars@hydroxide.nl>
Mon, 17 Sep 2018 18:39:35 +0000 (20:39 +0200)
commit06fd1e473d2435b3a58741a8cfca802fbf4aa5a2
treedc94b9a0f9e946debd4c475d2888fdad3526ed51
parent18b4a1da618dd40fc9384120ff8205e9d239b896
'head -c BYTES' is non-portable.

tests/playTests.sh uses 'head -c' in a couple of tests to truncate the
last byte of a file. The '-c' option is non-portable (not in POSIX).
Instead use a wrapper around dd (truncateLastByte).
tests/playTests.sh