Branch: refs/heads/1.11-maintenance
  Home:   https://github.com/NixOS/nix
  Commit: a4ad1ffa252d2e5d74eea8c56479f6bf27e316e7
      
https://github.com/NixOS/nix/commit/a4ad1ffa252d2e5d74eea8c56479f6bf27e316e7
  Author: Tuomas Tynkkynen <[email protected]>
  Date:   2017-01-07 (Sat, 07 Jan 2017)

  Changed paths:
    M scripts/nix-build.in

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

Regression from 8bddc3d4 ("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 1.11.


  Commit: 0085fc6d3e29abe053437d4f09bb2a3958cbfb06
      
https://github.com/NixOS/nix/commit/0085fc6d3e29abe053437d4f09bb2a3958cbfb06
  Author: Eelco Dolstra <[email protected]>
  Date:   2017-01-09 (Mon, 09 Jan 2017)

  Changed paths:
    M scripts/nix-build.in

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

nix-shell: Fix 'nix-shell --command' doing nothing without TTY (stable backport)


Compare: https://github.com/NixOS/nix/compare/0c67498be9e7...0085fc6d3e29
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to