[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cygwin: bash and PATH
From: |
Noel Yap |
Subject: |
Re: cygwin: bash and PATH |
Date: |
Wed, 3 Jul 2002 03:38:06 -0700 (PDT) |
--- Adolf Markl <Adolf.Markl@t-online.de> wrote:
> Here is a thing I wonder about ... it's annoying!
>
> # echo $PATH
>
.:/usr/local/bin:/usr/bin:/bin:/c/WinNT/system32:/c/WinNT:
> ...
>
> # which -a find
> /bin/find
> /c/WinNT/system32/find
> /g/x/bin/find
>
> # type -a find
> find is /c/WinNT/system32/find
>
> # find
> FIND: Parameterformat nicht korrekt
>
> That means, bash takes "/c/WinNT/system32/find"
> instead of "/bin/find"
>
> Why???
This is a pure guess:
If you're in /c/WinNT/system32, the "." in your PATH
will execute /c/WinNT/system32/find. Having "." in
your path can cause other problems (eg inadvertantly
executing Trojans). I suggest you remove "." from
your PATH even if this is not what's causing the
problem.
HTH,
Noel
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com