lost+found

Alexander Tarasov mr.tapac at gmail.com
Mon May 4 09:40:18 UTC 2009


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


More information about the freebsd-questions mailing list