Skip to content

Commit

Permalink
add reference to a spac for quirky macos paths
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jul 12, 2018
1 parent 90ec45e commit 985f05d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pure/ospaths.nim
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ proc isAbsolute*(path: string): bool {.rtl, noSideEffect, extern: "nos$1".} =
result = (path[0] in {'/', '\\'}) or
(len > 1 and path[0] in {'a'..'z', 'A'..'Z'} and path[1] == ':')
elif defined(macos):
# according to https://perldoc.perl.org/File/Spec/Mac.html `:a` is a relative path
result = path[0] != ':'
elif defined(RISCOS):
result = path[0] == '$'
Expand Down

0 comments on commit 985f05d

Please sign in to comment.