about summary refs log tree commit diff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2017-01-07T17·08+0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2017-01-07T17·08+0200
commit3890de049dff68b85ddb1e21c91e16561bc668ce (patch)
tree51952fc35d2150fff30e41a7f10df6ab060565b4 /bootstrap.sh
parent9000150a784d05a76455886b1ad8a95e0cff2115 (diff)
nix-shell: Fix 'nix-shell --command' doing nothing without TTY
Regression from a5f2750e ("Fix early removal of rc-file for nix-shell").
The removal of BASH_ENV causes nothing to be executed by bash if it
detects itself in a non-interactive context. Instead, just
use the same condition used by bash to launch bash differently.

According to bash sources, the condition (stdin and stder both
must be TTYs) is specified by POSIX so this should be pretty
safe to rely on.

Fixes #1171 on master, needs a backport to the Perl code in 1.11.
Diffstat (limited to 'bootstrap.sh')
0 files changed, 0 insertions, 0 deletions