]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: add --null option (Bug#49716)
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Jul 2021 04:24:02 +0000 (21:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Jul 2021 07:59:37 +0000 (00:59 -0700)
commit7d44ac224c93940d1a708442c1edf1a927be7057
tree0947e5cc7125f0dc9ac31bb6b84943b1173e823e
parent39673b6d4cffe6315d2a572c3741777b3f6a3d28
ls: add --null option (Bug#49716)

* NEWS, doc/coreutils.texi (General output formatting):
* src/ls.c (usage): Document this.
* src/ls.c (NULL_OPTION): New constant.
(long_options): Add --null.
(eolbyte): New static var.
(dired_dump_obstack, main, print_dir, print_current_files)
(print_many_per_line, print_horizontal, print_with_separator):
Output eolbyte instead of '\n'.
(decode_switches): Decode --null.
* tests/ls/null-option.sh: New file.
* tests/local.mk (all_tests): Add it.
NEWS
doc/coreutils.texi
src/ls.c
tests/local.mk
tests/ls/null-option.sh [new file with mode: 0755]