File:  [NetBSD Developer Wiki] / wikisrc / projects / project / dotdot.mdwn
Revision 1.6: download - view: text, annotated - select for diffs
Sat May 4 16:33:35 2019 UTC (3 years, 7 months ago) by sevan
Branches: MAIN
CVS tags: HEAD

[[!template id=project

title="Semantics of .."



In a file system with symlinks, the file system can be seen as a graph
rather than a tree. The meaning of .. potentially becomes complicated
in this environment.

There is a fairly substantial group of people, some of them big famous
names, who think that the usual behavior (where crossing a symlink is
different from entering a subdirectory) is a bug, and have made
various efforts from time to time to "fix" it. One such fix can be seen
in the -L and -P options to ksh's pwd.

Rob Pike implemented a neat hack for this in Plan 9. It is described
in []( This project is to
implement that logic for NetBSD.

Note however that there's another fairly substantial group of people,
some of them also big famous names, who think that all of this is a
load of dingo's kidneys, the existing behavior is correct, and
changing it would be a bug. So it needs to be possible to switch the
implementation on and off as per-process state.

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb