]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: stat: cover %N escaping of control characters
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 29 May 2026 16:55:48 +0000 (18:55 +0200)
committerPádraig Brady <P@draigBrady.com>
Fri, 29 May 2026 18:19:36 +0000 (19:19 +0100)
commitcec863ff08f7b1c97a075efa25b8beb386a1da48
treee430f1b8b47088379b34b979162e46ee93bb74ea
parent255febf98b6b6b98e2871c7305d8f0ec564ba0c4
tests: stat: cover %N escaping of control characters

The default shell-escape quoting style escapes control characters in
file names (e.g. newlines) as $'...' sequences, but no test exercised
this; only the single-quote character was covered.
referenced here: https://github.com/uutils/coreutils/issues/9925

* tests/stat/stat-fmt.sh: Add a case with a file name containing
contiguous and separated newlines.
https://github.com/coreutils/coreutils/pull/271
tests/stat/stat-fmt.sh