mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Merge pull request #1177 from dezgeg/bash-env-breakage
nix-shell: Fix 'nix-shell --command' doing nothing without TTY
This commit is contained in:
commit
f61337fdb3
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,8 @@ int main(int argc, char ** argv)
|
||||||
auto pure = false;
|
auto pure = false;
|
||||||
auto fromArgs = false;
|
auto fromArgs = false;
|
||||||
auto packages = false;
|
auto packages = false;
|
||||||
auto interactive = true;
|
// Same condition as bash uses for interactive shells
|
||||||
|
auto interactive = isatty(STDIN_FILENO) && isatty(STDERR_FILENO);
|
||||||
|
|
||||||
Strings instArgs;
|
Strings instArgs;
|
||||||
Strings buildArgs;
|
Strings buildArgs;
|
||||||
|
|
Loading…
Reference in a new issue