Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 2009 16:40:17 +0700
From:      Alexander Tarasov <mr.tapac@gmail.com>
To:        Ruben de Groot <mail25@bzerk.org>, Polytropon <freebsd@edvax.de>, PJ <af.gourmet@videotron.ca>, freebsd-questions@freebsd.org
Subject:   Re: lost+found
Message-ID:  <3b7dc6d0905040240t1a67c8e5s55b9450dc97c952c@mail.gmail.com>
In-Reply-To: <20090504090804.GA66641@ei.bzerk.org>
References:  <49FCA2C9.4060307@videotron.ca> <20090502230627.71ef7124.freebsd@edvax.de> <20090504090804.GA66641@ei.bzerk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"#" - is a comment..
in bash "cd" without dirname always return you to a home-directory..
"cd -" returns you to previous location, for example..

2009/5/4 Ruben de Groot <mail25@bzerk.org>

> 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
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



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