bash path problem

Pavel Kudrna
Thu Jun 14 05:26:00 GMT 2001

the correct order according to the PATH variable seems not to be
followed when running programs from bash prompt. The underlying
windows environment path setting seems to take precedence.
With tcsh 6.10.00 (Astron) this problem does not occur.
For instance after trying to execute "tar" program (without the path)
/cygdrive/c/utils/tar is executed intead of /bin/tar !?

Pavel Kudrna


$ cygcheck -s

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Thu Jun 14 13:30:36 2001

WinNT Ver 4.0 build 1381 Service Pack 6

Path:   /usr/local/bin
        /cygdrive/g/Program Files/VISA/winnt/bin
        /cygdrive/g/Program Files/VISA/winnt/agvisa
        /cygdrive/g/Program Files/TeX/MiKTeX/miktex/bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

PWD = `/home/kudrna'
CYGWIN = `binmode tty ntsec'
USER = `kudrna'
MAKE_MODE = `unix'
HOME = `/home/kudrna'

Use `-r' to scan registry

a:  fd           N/A    N/A
c:  hd  FAT     2047Mb  92% CP    UN
d:  fd           N/A    N/A
e:  fd  NTFS    1910Mb  35% CP CS UN PA FC
f:  net NWFS    8555Mb  97% CP                 SYS
g:  hd  NTFS    4573Mb  87% CP CS UN PA FC
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 53
h:  net          N/A    N/A
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 53
i:  net          N/A    N/A
r:  cd           N/A    N/A
s:  net NWFS    8555Mb  97% CP                 SYS
u:  net NWFS    8555Mb  97% CP                 SYS
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 53
x:  net          N/A    N/A
y:  net NWFS    8555Mb  97% CP                 SYS
z:  net NWFS    8555Mb  97% CP                 SYS

g:\progra~1\cygwin\bin  /usr/bin  system  binmode
g:\progra~1\cygwin\lib  /usr/lib  system  binmode
g:\progra~1\cygwin  /        system  binmode
c:    /cygdrive/c  user    binmode,noumount
f:    /cygdrive/f  user    binmode,noumount
g:    /cygdrive/g  user    binmode,noumount
s:    /cygdrive/s  user    binmode,noumount
u:    /cygdrive/u  user    binmode,noumount
y:    /cygdrive/y  user    binmode,noumount
z:    /cygdrive/z  user    binmode,noumount

Found: g:\progra~1\cygwin\bin\bash.exe
Found: g:\progra~1\cygwin\bin\cat.exe
Found: g:\progra~1\cygwin\bin\cpp.exe
Found: s:\software\bc31\bin\cpp.exe
Found: g:\progra~1\cygwin\bin\find.exe
Found: g:\progra~1\cygwin\bin\gcc.exe
Found: g:\progra~1\cygwin\bin\gdb.exe
Found: g:\progra~1\cygwin\bin\ld.exe
Found: g:\progra~1\cygwin\bin\ls.exe
Found: g:\progra~1\cygwin\bin\make.exe
Found: s:\software\bc31\bin\make.exe
Found: g:\progra~1\cygwin\bin\sh.exe

   56k 2000/12/03 g:\progra~1\cygwin\bin\cygbz21.0.dll
   45k 2001/04/25 g:\progra~1\cygwin\bin\cygform5.dll
   18k 2000/10/23 g:\progra~1\cygwin\bin\cyggdbm.dll
   17k 2001/01/07 g:\progra~1\cygwin\bin\cyghistory4.dll
   14k 2000/10/23 g:\progra~1\cygwin\bin\cygintl.dll
   81k 2000/12/05 g:\progra~1\cygwin\bin\cygitcl30.dll
   35k 2000/12/05 g:\progra~1\cygwin\bin\cygitk30.dll
   45k 2000/10/22 g:\progra~1\cygwin\bin\cygjbig1.dll
  119k 2001/06/06 g:\progra~1\cygwin\bin\cygjpeg6b.dll
   26k 2001/04/25 g:\progra~1\cygwin\bin\cygmenu5.dll
  156k 2001/04/25 g:\progra~1\cygwin\bin\cygncurses++5.dll
  226k 2001/04/25 g:\progra~1\cygwin\bin\cygncurses5.dll
   15k 2001/04/25 g:\progra~1\cygwin\bin\cygpanel5.dll
  163k 2001/05/06 g:\progra~1\cygwin\bin\cygpng2.dll
  108k 2001/01/07 g:\progra~1\cygwin\bin\cygreadline4.dll
  390k 2000/12/05 g:\progra~1\cygwin\bin\cygtcl80.dll
    5k 2000/12/05 g:\progra~1\cygwin\bin\cygtclpip80.dll
   10k 2000/12/05 g:\progra~1\cygwin\bin\cygtclreg80.dll
  245k 2001/06/12 g:\progra~1\cygwin\bin\cygtiff3.dll
  623k 2000/12/05 g:\progra~1\cygwin\bin\cygtk80.dll
   41k 2001/05/28 g:\progra~1\cygwin\bin\cygXpm-noX4.dll
   49k 2001/02/03 g:\progra~1\cygwin\bin\cygz.dll
  678k 2001/05/21 g:\progra~1\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        dll major: 1003
        dll minor: 2
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 39
        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: Sun May 20 23:28:17 EDT 2001
        shared id: cygwin1S3
Use -h to see help about each section
tel;fax:++420 2 688 5095
tel;work:++420 2 2191 2732
org:<b>Faculty of Mathematics and Physics</b>;Department of Electronics and Vacuum Physics
adr:;;V Holesovickach 2;Praha;Czech Republic;180 00;Czech Republic
title:Mgr. Pavel Kudrna, Dr.
fn:Pavel Kudrna

More information about the Cygwin mailing list