Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #276689

Category gcoreutils
Changed by Pádraig Brady <Pohnoyoudont@draigBrady.com>
Changed at Sat 01 Aug 2026 13:38:28
Repository git://git.savannah.gnu.org/coreutils.git
Project gcoreutils
Branch master
Revision 0acbfaf9724fd41cb14f9265bab77cd957d251df

Comments

ls: protect newlines for non terminal output
Add extra protection for newlines that might be output to log files etc.

* doc/coreutils.texi (ls invocation): Expand --literal description.
* src/ls.c (quote_name_buf): Replace '\n' with '?' if appropriate.
* tests/ls/dired.sh: Add a negative test case.
* tests/ls/zero-option.sh: Likewise.
* tests/ls/m-option.sh: Likewise. Also add a positive test case.
* NEWS: Mention the improvement.

Changed files