about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-02-19T13·52-0500
committerShea Levy <shea@shealevy.com>2015-02-19T13·52-0500
commitc4653afbcd96bf8f43bb54c1c2f79a27fd615e11 (patch)
treecc097bff11ad702079e8d24f1ffe16e4498ea159 /src
parente3e38a048e3dbe6d0e8beff7023a05113fe36fe8 (diff)
tilde paths: The rest of the string has to start with a slash anyway
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index 1ab84c045a48..36fdf3ba7b3a 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,