lix/src
Tuomas Tynkkynen 3890de049d 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.
2017-01-07 19:08:28 +02:00
..
boost Force stack trace for boost format errors 2016-03-02 15:46:07 +01:00
buildenv Fix Fedora build 2016-08-30 13:56:22 +02:00
download-via-ssh printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
libexpr Tweak error message 2016-12-06 17:18:40 +01:00
libmain Shut up some warnings 2016-10-12 15:53:38 +02:00
libstore Provide /var/run/nscd/socket in the sandbox 2017-01-02 14:46:37 +01:00
libutil Merge branch 'base32-overflow' of git://github.com/vcunat/nix 2016-12-13 09:41:02 -05:00
nix Store::computeFSClosure(): Support a set of paths 2016-11-10 17:45:04 +01:00
nix-build nix-shell: Fix 'nix-shell --command' doing nothing without TTY 2017-01-07 19:08:28 +02:00
nix-channel nix-channel: Fix --update <CHANNELS> 2016-11-21 15:54:19 +01:00
nix-collect-garbage printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-daemon nix-daemon: Fix splice faking on non-Linux 2016-11-17 08:10:12 -05:00
nix-env printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-instantiate Allow setting the state directory as a store parameter 2016-06-02 16:02:48 +02:00
nix-prefetch-url printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-store Add a hook to run diffoscope when non-determinism is detected 2016-12-07 17:57:35 +01:00
resolve-system-dependencies printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00