aboutsummaryrefslogtreecommitdiff
path: root/tests/nix-shell.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-09 01:16:55 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-09 01:18:44 +0200
commit9fc7da1e08d83378f8b0d66a060d92929c1468cf (patch)
tree12ba166c6eb592c5dad65e6b2578cd3cfe6002a9 /tests/nix-shell.sh
parent5f6375a816803d17c8ec0f7c2ef960c848be6166 (diff)
Add test for #4992
Diffstat (limited to 'tests/nix-shell.sh')
-rw-r--r--tests/nix-shell.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/nix-shell.sh b/tests/nix-shell.sh
index aae7cbcde..728313a8a 100644
--- a/tests/nix-shell.sh
+++ b/tests/nix-shell.sh
@@ -99,3 +99,5 @@ nix_develop -f shell.nix shellDrv -c echo foo |& grep -q foo
source <(nix print-dev-env -f shell.nix shellDrv)
[[ -n $stdenv ]]
[[ ${arr1[2]} = "3 4" ]]
+[[ ${arr2[1]} = $'\n' ]]
+[[ ${arr2[2]} = $'x\ny' ]]