Putting a path separator in front whenever a directory is absolute breaks in two cases:
When the directory starts with a ~, which is still absolute
When we're dealing with a Windows path (beginning with the drive letter)
Thus, a path separator should only be pushed to the parts of it is the first character.
The code in this PR comes with the assumption that path separators are always one character, but I found this assumption being made in other places too, so I guess it should be fine.
Would close #80.
Putting a path separator in front whenever a directory is absolute breaks in two cases:
~
, which is still absoluteThus, a path separator should only be pushed to the parts of it is the first character.
The code in this PR comes with the assumption that path separators are always one character, but I found this assumption being made in other places too, so I guess it should be fine.