diff options
author | Eric Blake <ebb9@byu.net> | 2009-10-27 06:36:40 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-10-27 19:55:35 -0600 |
commit | d6de2f198ef0f59f5210af0bf9bcf42687386a04 (patch) | |
tree | a1c5072f0b9aae40c24263d03e42ef92d81edbc9 /NEWS | |
parent | 1a813420896317aecf5598f76c852195796e534b (diff) | |
download | coreutils-d6de2f198ef0f59f5210af0bf9bcf42687386a04.tar.xz |
env, printenv: add -0/--null option
Allows for unambiguous processing when environment values (or even
non-portable names!) contain newline.
* src/env.c (longopts): Add new option.
(usage): Document it.
(main): Implement it.
* src/printenv.c (longopts): New variable.
(usage): Document new option.
(main): Implement it.
* doc/coreutils.texi (Common options): New macro optNull.
(du invocation, env invocation, printenv invocation): Use it.
* NEWS: Mention this.
* tests/misc/env-null: New test.
* tests/Makefile.am (TESTS): Run it.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -44,6 +44,9 @@ GNU coreutils NEWS -*- outline -*- ** New features + env and printenv now accept the option --null (-0), as a means to + avoid ambiguity with newlines embedded in the environment. + md5sum --check now also accepts openssl-style checksums. So do sha1sum, sha224sum, sha384sum and sha512sum. |