lost+found

Ruben de Groot mail25 at bzerk.org
Mon May 4 09:10:36 UTC 2009


On Sat, May 02, 2009 at 11:06:27PM +0200, Polytropon typed:
> On Sat, 02 May 2009 15:45:13 -0400, PJ <af.gourmet at 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


More information about the freebsd-questions mailing list