bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cygwin: bash and PATH


From: Adolf Markl
Subject: cygwin: bash and PATH
Date: Wed, 3 Jul 2002 12:25:22 +0200

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???

============== some CONFIG ====================
- cygwin on WinNT4
- GNU bash, version 2.05a.0(3)-release (i686-pc-cygwin)

# echo $PATH
.:/usr/local/bin:/usr/bin:/bin:/c/WinNT/system32:/c/WinNT: ...

# mount
G:\gnu\Cygnus on / type system (binmode)
a: on /a type system (binmode)
c: on /c type system (binmode)
d: on /d type system (binmode)
e: on /e type system (binmode)
f: on /f type system (binmode)
g: on /g type system (binmode)
h: on /h type system (binmode)
i: on /i type system (binmode)
j: on /j type system (binmode)
r: on /cdrom type system (binmode)
r: on /r type system (binmode)
w: on /cdrw type system (binmode)
w: on /w type system (binmode)

# ls -F /
bin/
etc/
home/
lib/
sbin/
tmp/
usr/
var/

# set
[...]
SHELL=/bin/bash
SHELLOPTS=allexport:braceexpand:hashall:histexpand:monitor:notify:histor
y:ignoreeof:interactive-comments:vi
[...]

# shopt
cdable_vars     on
cdspell         on
checkhash       off
checkwinsize    on
cmdhist         on
dotglob         off
execfail        off
expand_aliases  on
extglob         on
histreedit      on
histappend      on
histverify      on
hostcomplete    on
huponexit       off
interactive_comments    on
lithist         on
login_shell     on
mailwarn        off
no_empty_cmd_completion off
nocaseglob      on
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   on
sourcepath      on
xpg_echo        off

--
Adolf Markl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]