From a2d38bc7fc271ca5452ec3fd057bca3f737aa9ae Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 23 Apr 2016 17:55:20 +0200 Subject: doc/stdenv.xml document substitution env variables The filtering of environment variables that start with an uppercase letter is documented in the manual. --- pkgs/stdenv/generic/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/stdenv/generic/setup.sh') diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index f7f9cd533c1f..a183aabed0e3 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -445,7 +445,7 @@ substituteAll() { # Select all environment variables that start with a lowercase character. # Will not work with nix attribute names (and thus env variables) containing '\n'. - for envVar in $(env | sed -e $'s/^\([a-z][^=]*\)=.*/\\1/; t \n d'); do + for envVar in $(set | sed -e $'s/^\([a-z][^=]*\)=.*/\\1/; t \n d'); do if [ "$NIX_DEBUG" = "1" ]; then echo "$envVar -> ${!envVar}" fi -- cgit 1.4.1