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

Reply via email to