summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSebastian Ullrich <sebasti@nullri.ch>2020-11-07 15:00:22 +0100
committerSebastian Ullrich <sebasti@nullri.ch>2020-11-09 22:43:14 +0100
commitfb7735e4cf3a1ee6337bf1f2ee15204bb11304b2 (patch)
tree4c4028fbfb3cbd42f797089b5db91e8da3a45ae7 /tests
parent387f824cab50682e373ade49dcec4e6f99c10a42 (diff)
nix develop: Preserve stdin with `-c`
Diffstat (limited to 'tests')
-rw-r--r--tests/nix-shell.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/nix-shell.sh b/tests/nix-shell.sh
index 1228bb04f..dfe8ed0c1 100644
--- a/tests/nix-shell.sh
+++ b/tests/nix-shell.sh
@@ -58,6 +58,7 @@ output=$($TEST_ROOT/shell.shebang.rb abc ruby)
# Test 'nix develop'.
nix develop -f shell.nix shellDrv -c bash -c '[[ -n $stdenv ]]'
+echo foo | nix develop -f shell.nix shellDrv -c cat # preserve stdin with `-c`
# Test 'nix print-dev-env'.
source <(nix print-dev-env -f shell.nix shellDrv)