about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/parser.y4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index f4648b902ba4..010024de5645 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -379,9 +379,7 @@ expr_simple
   | HPATH {
       auto path = string{$1 + 1};
       $$ = new ExprConcatStrings(CUR_POS, false, new vector<Expr *>{
-          new ExprPath("/"),
-          new ExprApp(new ExprVar(data->symbols.create("__getEnv")),
-              new ExprString(data->symbols.create("HOME"))),
+          new ExprPath(getEnv("HOME", "/")),
           new ExprString(data->symbols.create(path))});
   }
   | SPATH {