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 ..
"E' un mondo difficile. Che vita intensa!" (Renato Carotone)
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com