From 4b7c9f834c6e861ced90558a13fe4b78b584b710 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 19 Feb 2015 08:49:10 -0500 Subject: [PATCH] tilde paths: get HOME at parse time --- src/libexpr/parser.y | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {