Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: 3890de049dff68b85ddb1e21c91e16561bc668ce
      
https://github.com/NixOS/nix/commit/3890de049dff68b85ddb1e21c91e16561bc668ce
  Author: Tuomas Tynkkynen <tuo...@tuxera.com>
  Date:   2017-01-07 (Sat, 07 Jan 2017)

  Changed paths:
    M src/nix-build/nix-build.cc

  Log Message:
  -----------
  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.


  Commit: f61337fdb36fa7107b015d57eff399553e69e9a3
      
https://github.com/NixOS/nix/commit/f61337fdb36fa7107b015d57eff399553e69e9a3
  Author: Eelco Dolstra <eelco.dols...@logicblox.com>
  Date:   2017-01-09 (Mon, 09 Jan 2017)

  Changed paths:
    M src/nix-build/nix-build.cc

  Log Message:
  -----------
  Merge pull request #1177 from dezgeg/bash-env-breakage

nix-shell: Fix 'nix-shell --command' doing nothing without TTY


Compare: https://github.com/NixOS/nix/compare/9000150a784d...f61337fdb36f
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to