1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 06:01:48 +02:00

nix develop: Preserve stdin with -c

This commit is contained in:
Sebastian Ullrich 2020-11-07 15:00:22 +01:00
parent 387f824cab
commit fb7735e4cf
2 changed files with 3 additions and 2 deletions

View file

@ -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)