diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index f4648b902..010024de5 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{ - 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 {