From 28854ee129e78b4fd4784f6dac3ebdf5c2a0b253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 21 Oct 2019 14:45:42 +0100 Subject: [PATCH] fix evaluation of nix env read seems to do weird stuff when reading from a file --- direnvrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/direnvrc b/direnvrc index e8e69d5..34fe6c6 100644 --- a/direnvrc +++ b/direnvrc @@ -38,10 +38,8 @@ use_nix() { local tmp_backup=$TMPDIR fi - log_status eval $cache - local cache_content - read cache_content < "$cache" - eval "$cache_content" + log_status eval "$cache" + eval < "$cache" export PATH=$PATH:$path_backup TERM=$term_backup TMPDIR=$tmp_backup if [ -z ${tmp_backup+x} ]; then export TMPDIR=${tmp_backup}