diff options
author | Denys Vlasenko | 2022-08-22 15:40:47 +0200 |
---|---|---|
committer | Denys Vlasenko | 2022-08-22 15:40:47 +0200 |
commit | f318adaaab3288fe72cb853bf7ede56790a13182 (patch) | |
tree | 417db541833ecac1843e0c8f7534b5d23e9bb83e /testsuite/xxd.tests | |
parent | 5a9d2b6e024e6c20d4d7b8c170985554c0df043d (diff) | |
download | busybox-f318adaaab3288fe72cb853bf7ede56790a13182.zip busybox-f318adaaab3288fe72cb853bf7ede56790a13182.tar.gz |
xxd -r: without -p, stop at more than one whitespace, closes 14786
function old new delta
xxd_main 888 1076 +188
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/xxd.tests')
-rwxr-xr-x | testsuite/xxd.tests | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/xxd.tests b/testsuite/xxd.tests index 76fa96a..359e7f8 100755 --- a/testsuite/xxd.tests +++ b/testsuite/xxd.tests @@ -37,4 +37,13 @@ testing 'xxd -p -r' \ '' \ '30313233343536373736353433323130 30313233343536373736353433323130' +testing 'xxd -r skips leading whitespace and truncates at two spaces' \ + 'xxd -r' \ + '0123456789:;<=>?@' \ + '' \ +"\ + 00000000: 3031 3233 3435 3637 3839 3a3b 3c3d 3e3f 0123456789:;<=>? + 00000010: 40 @ +" + exit $FAILCOUNT |