mirror of
https://github.com/NixOS/nix
synced 2025-07-03 10:21:47 +02:00
Merge pull request #1178 from dezgeg/bash-env-breakage-stable
nix-shell: Fix 'nix-shell --command' doing nothing without TTY (stable backport)
This commit is contained in:
commit
0085fc6d3e
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ my $runEnv = $0 =~ /nix-shell$/;
|
||||||
my $pure = 0;
|
my $pure = 0;
|
||||||
my $fromArgs = 0;
|
my $fromArgs = 0;
|
||||||
my $packages = 0;
|
my $packages = 0;
|
||||||
my $interactive = 1;
|
# Same condition as bash uses for interactive shells
|
||||||
|
my $interactive = -t STDIN && -t STDERR;
|
||||||
|
|
||||||
my @instArgs = ();
|
my @instArgs = ();
|
||||||
my @buildArgs = ();
|
my @buildArgs = ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue