xfs
[Top] [All Lists]

Re: ".", "..", and cd

Subject: Re: ".", "..", and cd
From: "D. Stimits" <stimits@xxxxxxxxxx>
Date: Sat, 08 Sep 2001 01:28:47 -0600
Cc: "XFS: linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
References: <4765.999929828@xxxxxxxxxxxxxxxxxxxxx>
Reply-to: stimits@xxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
Keith Owens wrote:
> 
> On Sat, 08 Sep 2001 00:06:22 -0600,
> "D. Stimits" <stimits@xxxxxxxxxx> wrote:
> >If I cd to "/", and then do "cd ..", there is no error either,
> >Is this the standard, expected behavior (possibly POSIX or HFS
> >designated)?
> 
> Every hierarchical filesystem I have ever worked on has this behaviour,
> / is its own parent.  Even non-Unix hierarchical systems do this.

Ok, this makes sense, it allows a state-machine description with no
undefined state when it is defined that "." and ".." are properties of
every node. (an arrow circling back to point at the node it starts from)

D. Stimits, stimits@xxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>