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 fromArgs = 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 buildArgs;
|
||||
|
|
Loading…
Reference in a new issue