diff options
author | Sebastian Ullrich <sebasti@nullri.ch> | 2020-11-07 15:00:22 +0100 |
---|---|---|
committer | Sebastian Ullrich <sebasti@nullri.ch> | 2020-11-09 22:43:14 +0100 |
commit | fb7735e4cf3a1ee6337bf1f2ee15204bb11304b2 (patch) | |
tree | 4c4028fbfb3cbd42f797089b5db91e8da3a45ae7 /tests | |
parent | 387f824cab50682e373ade49dcec4e6f99c10a42 (diff) |
nix develop: Preserve stdin with `-c`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/nix-shell.sh | 1 |
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) |