3 ms·
Does it, though? Aren't dot files just pretending to be hidden due to a bug in early Unix? Unix v1 had a flat filesystem. Unix v2 added subdirectories. As an
by lproven 3y ago
Does it, though?
Aren't dot files just pretending to be hidden due to a bug in early Unix?
Unix v1 had a flat filesystem. Unix v2 added subdirectories. As an implementation detail, each directory contained two magic files, `.` for "this directory" and `..` for "the parent directory".
The command to list files was sloppily coded to skip them. If a name started with a dot, it was skipped.
Hey presto! Unix 2 had a way to hide files! It was a bug, but it was useful, so it stayed.
The history:
https://tookmund.com/2022/03/rob-pike-shortcuts https://tookmund.com/2022/03/rob-pike-shortcuts
So, Gobo doesn't use `/etc` and `/var` and all that 1970s nonsense, but it keeps them around, empty except for shortcuts, for sloppy code that assumes they are there.
But they are hidden, just like dot files are hidden on every Unix-like OS. Because it looks better, no other reason.