Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 2009 11:08:04 +0200
From:      Ruben de Groot <mail25@bzerk.org>
To:        Polytropon <freebsd@edvax.de>
Cc:        PJ <af.gourmet@videotron.ca>, freebsd-questions@freebsd.org
Subject:   Re: lost+found
Message-ID:  <20090504090804.GA66641@ei.bzerk.org>
In-Reply-To: <20090502230627.71ef7124.freebsd@edvax.de>
References:  <49FCA2C9.4060307@videotron.ca> <20090502230627.71ef7124.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 02, 2009 at 11:06:27PM +0200, Polytropon typed:
> On Sat, 02 May 2009 15:45:13 -0400, PJ <af.gourmet@videotron.ca> wrote:
> > [~]# cd /tmp/lost+found/#123456
> > [/tmp/lost+found/#123456]# ls
> 
> Okay, it's empty.
> 
> 
> 
> > [/tmp/lost+found/#123456]# cd ..
> 
> Strange, why does .. lead you from /tmp/lost+found/#123456
> to /tmp/lost+found/#123456, just as if cd wasn't executed?
> 
> 
> 
> > [/tmp/lost+found/#123456]# cd #123456 this returns and empty directory)
> 
> Does /tmp/lost+found/#123456 contain another #123456? And
> why does this cd lead you to your (root's) home directory?

Probably because the # is interpreted as comment. I can reproduce this
in a bourne shell; not in (t)csh.

Ruben



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090504090804.GA66641>