1 Feb 2005 05:26
Re: Question on compath() in sbr/path.c
Mike O'Dell <mo <at> ccr.org>
2005-02-01 04:26:49 GMT
2005-02-01 04:26:49 GMT
there are two ways to do filenames one is purely as text strings which can admit a number of algebras, one of which provides for having dot-dot reflect the temporal state which the current string to be what it is, and all name operations are done with string algebra. the other way is using a directed graph as the implementation. the Unix filesystem works this way. dot and dot-dot are implemented as explicit pointers to directory inodes. if the directed graph (directory graph) is used to evaluate dot-dot, the parent is the one reflected in the graph. there is no "right" answer - one can argue that in some cases one is more consistent than the other. if dot-dot is to be recorded in the filesystem, then its value cannot be context-sensitive based on the computation history of the process. if dot-dot is evaluated with string algebra, like is done with many shell "builtin" cd functions, then the value of dot-dot can indeed be context-sensitive and reflect whatever is desired. the usual context is the temporal sequence of "cd" operations done by the shell to get to a given directory.(Continue reading)
paul
=---------------------
paul fox, pgf <at> foxharp.boston.ma.us (arlington, ma, where it's 27.1 degrees)
_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
RSS Feed