tests: split: ensure split accepts a leading '+' in the number of chunks

Reported at https://github.com/uutils/coreutils/issues/16006

* tests/split/b-chunk.sh: Add test case.

Link: https://github.com/coreutils/coreutils/pull/434
This commit is contained in:
Sylvestre Ledru authored and Pádraig Brady committed 2026-11-07 12:35:10 +00:00
1 parent 307bdd9441
commit fb81c39b38
1 file changed
+7
+7
View File
@@ -88,4 +88,11 @@ for file in input /proc/version /sys/kernel/profiling; do
done
done
# A leading '+' is accepted in the number of chunks.
rm -f x?? || framework_failure_
printf 'a\nb\n' > in || framework_failure_
split -n +2 in || fail=1
test -f xaa && test -f xab || fail=1
test -f xac && fail=1
Exit $fail