Mail Archives: cygwin/2002/07/29/10:23:14
Hello,
my bash seems to have problems with the PATH. For an unknown reason it
searchs any command first in the Windows directories instead of the
directory sequence in the PATH. See following log for the symptom:
==============
[1] jse AT NB-JSE3 ~
$ echo $PATH
.:/usr/local/bin:/bin:/sbin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/op
t/Perforce
[1] jse AT NB-JSE3 ~
$ which find
/cygdrive/c/WINNT/system32/find
[1] jse AT NB-JSE3 ~
$ sh
$ which find
/bin/find
$ exit
==============
If I remove the two Windows directories from the PATH bash behaves like ash,
but I will also loose any Windows tools like ping, ipconfig, etc. Adding
these dirs again at the end of PATH, wrong utitlities are found.
This behaviour arised after loosing my Windows profile (ntuser.dat was
corrupt) and I lost all my private settings (registry of //HKCU/...). A new
profile has been set up now and anything regarding Cygwin seems to work
again ... except the PATH. Meanwhile I've updated to the latest cygwin and
bash versions, but I have still the same odd behaviour that I cannot explain
to myself, since Cygwin does not use (AFAIK) any registry keys (except for
user mounts). The problem is only present in bash, not in any other shell
(ash, tcsh, zsh, cygtklsh) and I already tried "hash -r".
Although I use Cygwin for years now, this problem drives me crazy and makes
me feel rather stupid. Anyone (except me) who sees any obvious problem in
the configuration? Did anyone else stumble over this although POATH is
correct set? See cygcheck and shopt below ...
Regards,
Jörg
===============
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Jul 29 15:05:59 2002
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2
Path: .
c:\Dokumente und Einstellungen\All Users\Anwendungsdaten\cygwin\bin
c:\Programme\cygwin\bin
c:\Programme\cygwin\sbin
c:\WINNT\system32
c:\WINNT
c:\Programme\Perforce
.
C:\Dokumente und Einstellungen\jse\src\GFT\SICK\Communique\bin
SysDir: C:\WINNT\System32
WinDir: C:\WINNT
CYGWIN = `ntsec'
HOME = `C:\Dokumente und Einstellungen\jse'
PWD = `/home/jse'
USER = `jse'
Use `-r' to scan registry
c: hd NTFS 11507Mb 88% CP CS UN PA FC
C:\Dokumente und Einstellungen\jse\src\GFT
/home/jse/GFT user textmode
C:\Dokumente und Einstellungen\jse\src\GFT\SICK
/home/jse/GFT/SICK user binmode
c:\DOKUME~1\jse\LOKALE~1\Temp /tmp
user binmode
c:\Programme\cygwin /
system binmode
C:\Dokumente und Einstellungen /home
system binmode
c:\Programme /opt
system textmode
c:\Programme\cygwin/bin /usr/bin
system binmode
c:\Programme\cygwin\doc /usr/doc
system binmode
c:\Programme\cygwin/lib /usr/lib
system binmode
c:\Dokumente und Einstellungen\All Users\Anwendungsdaten\cygwin /usr/local
system binmode
c:\Programme\cygwin\sbin /usr/sbin
system binmode
c:\Programme\vim
/usr/share/vim system textmode
. /cygdrive
user binmode,cygdrive
Found: c:\Programme\cygwin\bin\bash.exe
Found: c:\Programme\cygwin\bin\cat.exe
Found: c:\Programme\cygwin\bin\cpp.exe
Found: c:\Programme\cygwin\bin\find.exe
Found: c:\Programme\cygwin\bin\gcc.exe
Found: c:\Programme\cygwin\bin\gdb.exe
Found: c:\Programme\cygwin\bin\ld.exe
Found: c:\Programme\cygwin\bin\ls.exe
Found: c:\Programme\cygwin\bin\make.exe
Found: c:\Programme\cygwin\bin\sh.exe
58k 2002/05/07 c:\Programme\cygwin\bin\cygbz2-1.dll
54k 2002/01/27 c:\Programme\cygwin\bin\cygbz21.0.dll
6k 2002/06/24 c:\Programme\cygwin\bin\cygcharset-1.dll
621k 2002/05/17 c:\Programme\cygwin\bin\cygcrypto.dll
452k 2002/07/17 c:\Programme\cygwin\bin\cygcurl-2.dll
132k 2002/07/14 c:\Programme\cygwin\bin\cygexpat-0.dll
50k 2002/03/17 c:\Programme\cygwin\bin\cygexslt-0.dll
35k 2002/01/09 c:\Programme\cygwin\bin\cygform6.dll
19k 2002/02/20 c:\Programme\cygwin\bin\cyggdbm.dll
20k 2002/07/17 c:\Programme\cygwin\bin\cyghistory5.dll
929k 2002/06/24 c:\Programme\cygwin\bin\cygiconv-2.dll
22k 2001/12/13 c:\Programme\cygwin\bin\cygintl-1.dll
23k 2002/06/24 c:\Programme\cygwin\bin\cygintl-2.dll
21k 2001/06/20 c:\Programme\cygwin\bin\cygintl.dll
81k 2001/10/20 c:\Programme\cygwin\bin\cygitcl30.dll
35k 2001/10/20 c:\Programme\cygwin\bin\cygitk30.dll
45k 2002/02/08 c:\Programme\cygwin\bin\cygjbig1.dll
119k 2002/02/09 c:\Programme\cygwin\bin\cygjpeg6b.dll
25k 2002/07/16 c:\Programme\cygwin\bin\cygltdl-3.dll
20k 2002/01/09 c:\Programme\cygwin\bin\cygmenu6.dll
175k 2002/01/09 c:\Programme\cygwin\bin\cygncurses++6.dll
202k 2002/01/09 c:\Programme\cygwin\bin\cygncurses6.dll
12k 2002/01/09 c:\Programme\cygwin\bin\cygpanel6.dll
40k 2001/11/21 c:\Programme\cygwin\bin\cygpcre.dll
39k 2001/11/21 c:\Programme\cygwin\bin\cygpcreposix.dll
175k 2002/07/22 c:\Programme\cygwin\bin\cygpng10.dll
179k 2002/07/22 c:\Programme\cygwin\bin\cygpng12.dll
170k 2002/01/21 c:\Programme\cygwin\bin\cygpng2.dll
22k 2002/06/09 c:\Programme\cygwin\bin\cygpopt-0.dll
127k 2002/07/17 c:\Programme\cygwin\bin\cygreadline5.dll
66k 2001/11/20 c:\Programme\cygwin\bin\cygregex.dll
156k 2002/05/17 c:\Programme\cygwin\bin\cygssl.dll
390k 2001/10/20 c:\Programme\cygwin\bin\cygtcl80.dll
5k 2001/10/20 c:\Programme\cygwin\bin\cygtclpip80.dll
10k 2001/10/20 c:\Programme\cygwin\bin\cygtclreg80.dll
253k 2002/02/10 c:\Programme\cygwin\bin\cygtiff3.dll
623k 2001/10/20 c:\Programme\cygwin\bin\cygtk80.dll
25k 2002/07/14 c:\Programme\cygwin\bin\cygungif-4.dll
633k 2002/07/22 c:\Programme\cygwin\bin\cygxml2-2.dll
41k 2002/01/20 c:\Programme\cygwin\bin\cygXpm-noX4.dll
46k 2002/01/20 c:\Programme\cygwin\bin\cygXpm-X4.dll
152k 2002/03/17 c:\Programme\cygwin\bin\cygxslt-1.dll
15k 2002/03/17 c:\Programme\cygwin\bin\cygxsltbreakpoint-1.dll
50k 2002/03/12 c:\Programme\cygwin\bin\cygz.dll
883k 2002/07/06 c:\Programme\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.12
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 54
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Sat Jul 6 02:16:58 EDT 2002
CVS tag: cygwin-1-3-12-1
Shared id: cygwin1S3
Cygwin Package Information
Package Version
_update-info-dir 00037-1
ash 20020131-1
autoconf 2.53b-1
autoconf-devel 2.53a-1
autoconf-stable 2.13-4
automake 1.6.2-1
automake-devel 1.6.2-1
automake-stable 1.4p5-5
bash 2.05b-1
bc 1.06-1
binutils 20020706-2
bison 1.35-1
byacc 1.9-1
bzip2 1.0.2-2
ccache 1.9-1
clear 1.0-1
cpio 2.4.2
cron 3.0.1-7
crypt 1.0-1
ctags 5.2-1
curl 7.9.8-2
cvs 1.11.0-1
cygrunsrv 0.95-1
cygutils 1.1.2-1
cygwin 1.3.12-2
cygwin-doc 1.0-1
dejagnu 20010117-1
diff 1.0-1
diffutils 2.8.1-1
dpkg 1.10.4-2
ed 0.2-1
enscript 1.6.3-2
expat 1.95.4-1
expect 20010117-1
figlet 2.2-1
file 3.37-1
fileutils 4.1-1
findutils 4.1.7-4
flex 2.5.4-2
gawk 3.0.4-1
gcc 2.95.3-5
gdb 20010428-3
gdbm 1.8.0-4
gettext 0.11.2-2
gettext-devel 0.11.2-2
ghostscript 7.05-1
ghostscript-base 7.05-1
gperf 0.0
grep 2.5-1
groff 1.17.2-1
gsl 1.1.1-1
gzip 1.3.3-3
indent 2.2.8-1
inetutils 1.3.2-19
irc 20010101-1
jbigkit 1.2-6
jpeg 6b-7
keychain 1.9-1
less 374-1
libbz2_0 1.0.2-1
libbz2_1 1.0.2-2
libcharset1 1.8-2
libiconv 1.8-2
libiconv2 1.8-2
libintl 0.10.38-3
libintl1 0.10.40-1
libintl2 0.11.2-2
libltdl3 20020705-2
libncurses5 5.2-1
libncurses6 5.2-8
libpng 1.2.4-2
libpng10 1.0.14-2
libpng10-devel 1.0.14-2
libpng12 1.2.4-2
libpng12-devel 1.2.4-2
libpng2 1.0.12-1
libpopt0 1.6.4-4
libreadline4 4.1-2
libreadline5 4.3-1
libtool 20020705-1
libtool-devel 20020705-2
libtool-stable 1.4.2-2
libungif 4.1.0-2
libxml2 2.4.23-1
libxslt 1.0.13-1
links 0.96-1
login 1.4-3
lynx 2.8.4-1
m4 0.0
make 3.79.1-7
man 1.5g-2
mingw 20010424-1
mingw-runtime 2.0-2
mktemp 1.4-1
more 2.11o-1
mutt 1.4-1
ncftp 3.1.3-1
ncurses 5.2-8
newlib-man 20001118-1
opengl 1.1.0-6
openssh 3.4p1-4
openssl 0.9.6d-1
openssl-devel 0.9.6d-1
patch 2.5-3
pcre 3.7-1
perl 5.6.1-2
pkgconfig 0.12.0-1
popt 1.6.4-4
python 2.2.1-1
readline 4.3-1
regex 4.4-2
rsync 2.5.5-1
rxvt 2.7.2-10
sed 3.02-1
sh-utils 2.0-2
sharutils 4.2.1-2
shellutils 0.0
shutdown 1.2-2
squid 2.4.STABLE7-1
ssmtp 2.38.7-3
swig 1.3.13-1
tar 1.13.19-1
tcltk 20001125-1
tcp_wrappers 7.6-1
tcsh 6.11.00-4
termcap 20020403-1
terminfo 5.2-3
tetex-beta 20001218-4
texinfo 4.2-3
texmf 20000804-2
texmf-base 20000804-2
texmf-doc 20000804-2
texmf-extra 20000804-2
texmf-tiny 20000804-2
textutils 2.0.21-1
tidy 020623-1
tiff 3.5.7-1
time 1.7-1
ttcp 19980512-1
ucl 1.01-1
units 1.77-1
unzip 5.50-1
upx 1.21-1
vim 6.1-2
w32api 1.5-1
wget 1.8.2-1
which 1.5-1
whois 4.5.17-1
xpm 4.0.0-2
xpm-nox 4.2.0-1
zip 2.3-2
zlib 1.1.4-1
zsh 4.0.4-1
Use -h to see help about each section
==============
$ shopt
cdable_vars off
cdspell off
checkhash off
checkwinsize off
cmdhist on
dotglob off
execfail off
expand_aliases on
extglob off
histreedit off
histappend off
histverify off
hostcomplete on
huponexit off
interactive_comments on
lithist off
login_shell on
mailwarn off
no_empty_cmd_completion off
nocaseglob off
nullglob off
progcomp on
promptvars on
restricted_shell off
shift_verbose off
sourcepath on
xpg_echo off
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -