[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

not 'cd ..' , was Re: Wierd bug report: /usr/share/.. = / ???


On Mon, Apr 08, 2002 at 01:05:41PM -0700, David Caldwell wrote:
> On 04/08/02 13:25:39 -0400 Adam C Powell IV wrote:
> I think it means you should fsck your disk. Possibly the '..' in /usr/share 
> is pointing to the wrong directory (/ instead of /usr). What happens when 
> you 'cd ..' repeatedly out to root? Does it skip /usr?

'cd ..' is the wrong thing to do

in bash , 'cd ..' takes away a directory from the `pwd` 

when `pwd` ends with a symlink, 'cd ..'
do not bring into ..

in that case, `ls ..` shows the 'real' parent, 'cd ..' brings into
the 'convenience' parent

whenever you have problems with symlinks, you should use 'realpath .'
to know what is the real name of the current dir, and 'realpath ..'
to know the real path name  of ..



Andrea Mennucc
 "E' un mondo difficile. Che vita intensa!" (Renato Carotone)

To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: