From c4653afbcd96bf8f43bb54c1c2f79a27fd615e11 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 19 Feb 2015 08:52:13 -0500 Subject: [PATCH] tilde paths: The rest of the string has to start with a slash anyway --- src/libexpr/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index 1ab84c045..36fdf3ba7 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -376,7 +376,7 @@ expr_simple $$ = stripIndentation(CUR_POS, data->symbols, *$2); } | PATH { $$ = new ExprPath(absPath($1, data->basePath)); } - | HPATH { $$ = new ExprPath(getEnv("HOME", "/") + string{$1 + 1}); } + | HPATH { $$ = new ExprPath(getEnv("HOME", "") + string{$1 + 1}); } | SPATH { string path($1 + 1, strlen($1) - 2); $$ = new ExprApp(CUR_POS,