mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 07:12:27 +00:00
fix parse of /${foo}
. was // + foo
I don't think this changes the way any program would behave, but it's a cleaner internal representation.
This commit is contained in:
parent
b2beb97f2a
commit
1ffb9f1970
@ -459,7 +459,7 @@ path_start
|
||||
: PATH {
|
||||
Path path(absPath($1, data->basePath));
|
||||
/* add back in the trailing '/' to the first segment */
|
||||
if ($1[strlen($1)-1] == '/')
|
||||
if ($1[strlen($1)-1] == '/' && strlen($1) > 1)
|
||||
path += "/";
|
||||
$$ = new ExprPath(path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user