diff options
| author | Sebastian Reuße <seb@schattenkopie.de> | 2024-09-11 14:03:57 +0200 |
|---|---|---|
| committer | Antoine Cotten <hello@acotten.com> | 2024-09-11 14:07:24 +0200 |
| commit | 6ad463a76421022de6762e6f50128febb970dcfc (patch) | |
| tree | d45f0fffb5e899852f041d0e67f0b63e5b533b11 /modules/programs/bash | |
| parent | 7e6c548eef2372cef1287ef45350e29ca5740159 (diff) | |
zsh: don't be noisy when scripts are run with -u
When a script specifies the shell option "nounset" as part of the
shebang (e.g., via "#!/usr/bin/env -S zsh -u"), our initialization
scripts would produce error messages of the form:
__ETC_FOO_SOURCED: parameter not set
These messages could probably be confusing to users when running such
scripts. By providing a fall-back in the parameter expansion, we can
avoid them.
This patch does not address interactive shell start-up, where such
messages may (or may not) be less problematic.
NixOS/nixpkgs@7d84dbdf5b91439f798363559310d86b21bfa86c
Diffstat (limited to 'modules/programs/bash')
0 files changed, 0 insertions, 0 deletions
