Mail Archives: djgpp-workers/2000/08/25/14:40:14
Hello.
Eli Zaretskii wrote:
> > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> >
> > I noticed slightly weird command completion using bash 2.04 beta 5c.
> > If I type 'cd /dev/d' in a directory where I have files beginning with
> > 'd' (*), it completes to that name, e.g. '/dev/doc'. This behaviour is
> > wrong IMHO.
>
> I think you shouldn't use "/dev/..." file names in interactive
> sessions at all. It is meant to be used with Unix scripts that aren't
> ready for DOS-style file names with drive letters.
Much as I would like to avoid using /dev, I think I have to. Using
d:/[directory] doesn't seem to work, so I have to resort to
/dev/d/[directory]. Is this intentional?
> The problems you describe are expected behavior: "/dev/" gets stripped
> by _put_path, and you get files in the current directory. If you want
> more fun like this, try "ls co" and press TAB: on some systems you
> will see a file called "con".
Thanks for the explanation.
Bye, Rich =]
--
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]
- Raw text -