mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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:
1 parent
307bdd9441
commit
fb81c39b38
1 file changed
+7
@@ -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
|
||||
Reference in new issue
Block a user