Newsgroups: comp.unix.wizards
Path: utzoo!utgpu!watserv1!watcgl!watcgl!jmberkle
From: jmberkle@watnow.waterloo.edu (J. Michael Berkley)
Subject: Re: Hard links to directories: why not?
In-Reply-To: jbm@eos.UUCP's message of 18 Jul 90 18:23:30 GMT
Message-ID: <JMBERKLE.90Jul19051408@watnow.waterloo.edu>
Sender: daemon@watcgl.waterloo.edu (System Processes)
Organization: University of Waterloo, Waterloo, Ontario, Canada
References: <5222@milton.u.washington.edu> <6940@eos.UUCP>
Date: 19 Jul 90 05:14:08
Lines: 15

> On 18 Jul 90 18:23:30 GMT, jbm@eos.UUCP (Jeffrey Mulligan) said:

JBM> What should be the output of the last command of this sequence?

JBM> mkdir dir1
JBM> mkdir dir2
JBM> mkdir dir1/a_directory
JBM> ln dir1/a_directroy dir2/directory_link
JBM> cd dir2/directory_link
JBM> cd ..
JBM> pwd

dir1:
	- dir2/directory_link/.. is a link to dir1 that existed before
	  dir1/a_directory was linked to dir2/directory_link
