]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: rename --null to --zero (Bug#49716)
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2021 00:34:43 +0000 (17:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2021 01:08:39 +0000 (18:08 -0700)
commitc75779cac3abec6e6072c0ac77dced85d1c44370
tree7c4718143bad10f308118c1b752a24241ed5208c
parent9e4a6101f239b8168144078edd04843dea4dc69f
ls: rename --null to --zero (Bug#49716)

* NEWS, doc/coreutils.texi (General output formatting):
* src/ls.c (usage):
Document this.
* src/ls.c (ZERO_OPTION): Rename from NULL_OPTION.
All uses changed.
(long_options): Rename --null to --zero.
(dired_dump_obstack, main, print_dir): Use '\n' instead of
eolbyte where eolbyte must equal '\n'.
(decode_switches): Decode --zero instead of --null.
--zero also implies -1, -N, --color=none, --show-control-chars.
Use easier-to-decipher code to set ‘format’ and ‘dired’.
Reject attempts to combine --dired and --zero.
* tests/local.mk: Adjust to test script renaming.
* tests/ls/zero-option.sh: Rename from tests/ls/null-option.sh,
and test --zero instead of --null.
NEWS
doc/coreutils.texi
src/ls.c
tests/local.mk
tests/ls/zero-option.sh [moved from tests/ls/null-option.sh with 92% similarity]