Skip to content

split: --verbose prints nothing with -n/--number #15583

Open

Description

@alpaylan

split --verbose prints creating file 'NAME' before each output file with -b, -l and -C, but prints nothing with any -n mode (N, l/N, r/N, with or without -e). The files themselves are written correctly.

The GNU manual (split invocation) says:

--verbose: Write a diagnostic just before each output file is opened.

printf 'a\nb\n' | split -n 2 --verbose
# GNU 9.12: creating file 'xaa'
#           creating file 'xab'
# uutils:   (nothing)

printf 'a\nb\n' | split -n l/2 --verbose
# GNU 9.12: creating file 'xaa'
#           creating file 'xab'
# uutils:   (nothing)

Versions. uutils main eee5603 (2026-10-21) and the 0.12.0 release binary, macOS 26 aarch64 (the loop found it on Linux x86_64), LC_ALL=C, compared with GNU coreutils 9.12.

Where. src/uu/split/src/split.rs: the -n modes open their files through OutFiles (ManageOutFiles::init and instantiate_writer), which never call print_creating_file.

Related: listed as one row (split -n2 --verb) in the bulk issue #15254.

Found with an automated differential tester that compares uutils with GNU 9.12.

Reproduction steps

export LC_ALL=C
cd "$(mktemp -d)"
printf 'a\nb\n' | split -n 2 --verbose
# GNU 9.12: creating file 'xaa' / creating file 'xab'
# uutils:   no output

Activity

  1. added 2 commits that reference this issue on Oct 26, 2026
    8b7cc48
    eec73fc
  2. added a commit that references this issue on Nov 1, 2026
    c07dc66
  3. added a commit that references this issue on Nov 8, 2026
    e3de964
  4. added a commit that references this issue on Nov 11, 2026
    5a68ed7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions