diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 08:51:49 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 08:51:49 +0100 |
commit | 9ef32cf3b8e645c9ed1e08b097d07db688cfb0a7 (patch) | |
tree | 13d3c652efe7f3d05af6e491f26bf037474f42c6 /tests/functional/nix-shell.sh | |
parent | 625df32afca54cbc20c1dfe01159fc2b5e549aed (diff) |
Merge pull request #9930 from rvl/print-dev-env-unbound-variables
print-dev-env: Avoid using unbound shellHook variable
(cherry picked from commit 25385a408ef7281d966c8732608833e224b32586)
Change-Id: Id1aca13942adfa628f7bdcfc0b6fc03bb3bab9ea
Diffstat (limited to 'tests/functional/nix-shell.sh')
-rw-r--r-- | tests/functional/nix-shell.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/nix-shell.sh b/tests/functional/nix-shell.sh index 13403fadb..04c83138e 100644 --- a/tests/functional/nix-shell.sh +++ b/tests/functional/nix-shell.sh @@ -118,10 +118,10 @@ diff $TEST_ROOT/dev-env{,2}.json # Ensure `nix print-dev-env --json` contains variable assignments. [[ $(jq -r .variables.arr1.value[2] $TEST_ROOT/dev-env.json) = '3 4' ]] -# Run tests involving `source <(nix print-dev-inv)` in subshells to avoid modifying the current +# Run tests involving `source <(nix print-dev-env)` in subshells to avoid modifying the current # environment. -set +u # FIXME: Make print-dev-env `set -u` compliant (issue #7951) +set -u # Ensure `source <(nix print-dev-env)` modifies the environment. ( |