A tale of two path separators
alexwlchan.net
A tale of two path separators
1–10 of 38 posts
Re: A tale of two path separators
#2Double colon (::) meant the same as .. on Unix/DOS, that is "go up one level". So you have to be careful when concatenating paths to not get double separators.
Paths starting with : were relative. If a path didn't start with the separator, the first component was the volume name (disk partition). Again, quite unlike Unix.
Also, remember it was common to have spaces in names on Mac, even the default harddrive on Macs was named "Macintosh HD". So an absolute path like "Macintosh HD:Programs:MacWrite" would have been common. (I grew up with Macs in Swedish, so I'm back translating the names here, could be that the names were slightly different in English.)
Re: A tale of two path separators
#3Re: A tale of two path separators
#4Old Macs (which I grew up with) had even more baroque path handling than mentioned in the blog post: Double colon (::) meant the same as .. on Unix/DOS, that is "go up one level". So you have to be careful when concatenating paths to not get double separators. Paths starting with : were relative. If a path didn't start with the separator, the first component was the volume name (disk partition). Again, quite unlike U…
Re: A tale of two path separators
#5Old Macs (which I grew up with) had even more baroque path handling than mentioned in the blog post: Double colon (::) meant the same as .. on Unix/DOS, that is "go up one level". So you have to be careful when concatenating paths to not get double separators. Paths starting with : were relative. If a path didn't start with the separator, the first component was the volume name (disk partition). Again, quite unlike U…
Current macOS Finder let's you name files with a slash in them, rendered as a : in the terminal.
$ touch "foo:bar"
In the Terminal, then Finder renders it as foo/bar.So who is lying, how is it stored in the directory entry in APFS itself?
Re: A tale of two path separators
#6Old Macs (which I grew up with) had even more baroque path handling than mentioned in the blog post: Double colon (::) meant the same as .. on Unix/DOS, that is "go up one level". So you have to be careful when concatenating paths to not get double separators. Paths starting with : were relative. If a path didn't start with the separator, the first component was the volume name (disk partition). Again, quite unlike U…
Current macOS Finder let's you name files with a slash in them, rendered as a : in the terminal.
Re: A tale of two path separators
#7Old Macs (which I grew up with) had even more baroque path handling than mentioned in the blog post: Double colon (::) meant the same as .. on Unix/DOS, that is "go up one level". So you have to be careful when concatenating paths to not get double separators. Paths starting with : were relative. If a path didn't start with the separator, the first component was the volume name (disk partition). Again, quite unlike U…
$ cat x.lisp
heredoc> (require :uiop)
heredoc> (let ((p (make-pathname :name "foo:bar")))
heredoc> (format t "~@{~A~%~}" (namestring p) (uiop:native-namestring p)))
heredoc> EOF
$ ccl -b -Q -l x.lisp