mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
nix: develop: remove test for interactive shell executable
This commit is contained in:
parent
eaa3629532
commit
06a745120b
1 changed files with 0 additions and 8 deletions
|
@ -50,14 +50,6 @@ EOF
|
||||||
nix build --no-write-lock-file './nixpkgs#bashInteractive' --out-link ./bash-interactive
|
nix build --no-write-lock-file './nixpkgs#bashInteractive' --out-link ./bash-interactive
|
||||||
BASH_INTERACTIVE_EXECUTABLE="$PWD/bash-interactive/bin/bash"
|
BASH_INTERACTIVE_EXECUTABLE="$PWD/bash-interactive/bin/bash"
|
||||||
|
|
||||||
# Test whether `nix develop` uses nixpkgs#bashInteractive shell.
|
|
||||||
[[ "$(
|
|
||||||
nix develop --no-write-lock-file .#hello <<EOF
|
|
||||||
export PATH="$PATH"
|
|
||||||
$lsof -a -d txt -p \$$ 2>&1 | grep -o '/.*/bash'
|
|
||||||
EOF
|
|
||||||
)" -ef "$BASH_INTERACTIVE_EXECUTABLE" ]]
|
|
||||||
|
|
||||||
# Test whether `nix develop` sets `SHELL` to nixpkgs#bashInteractive shell.
|
# Test whether `nix develop` sets `SHELL` to nixpkgs#bashInteractive shell.
|
||||||
[[ "$(
|
[[ "$(
|
||||||
SHELL=custom nix develop --no-write-lock-file .#hello <<EOF
|
SHELL=custom nix develop --no-write-lock-file .#hello <<EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue