]> git.ipfire.org Git - thirdparty/coreutils.git/commit
doc: env: clarify that empty signal args are ignored
authorPádraig Brady <P@draigBrady.com>
Tue, 26 Jul 2022 13:10:59 +0000 (14:10 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 26 Jul 2022 13:16:55 +0000 (14:16 +0100)
commit187712b97b04f3ee6c2137f5b045970d76bb01f0
treee3d836e0e223f3f88d2c5abf7b3e26fc95b50755
parent56783caccffc316da47347e4e71029c5a685184f
doc: env: clarify that empty signal args are ignored

It's useful to treat empty and missing arguments differently.
Missing means all signals, while empty means no signals and
so is a no-op.  It's useful to treat empty arguments like
this, so that dynamically specified arguments like the following
are supported

  env --ignore-signals "$SIGS_TO_IGNORE"

Note `env --ignore-signals=` is treated as an empty argument.

* doc/coreutils.texi (env invocation): Empty args are treated
differently to missing arguments, so call that out explicitly.
* src/env.c (usage): Likewise.
Addresses https://bugs.debian.org/1016049
doc/coreutils.texi
src/env.c