From: adf AT mentor-systems DOT com (Austin David France) Subject: RE: B20, bash, #! & relative script execution 25 Nov 1998 00:34:48 -0800 Message-ID: <003e01be17e2$8c462e90$010120c0.cygnus.cygwin32.developers@menpc1> References: <19981124091931 DOT A20866 AT cygnus DOT com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_003F_01BE17E2.8C462E90" To: This is a multi-part message in MIME format. ------=_NextPart_000_003F_01BE17E2.8C462E90 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit > On Tue, Nov 24, 1998 at 14:20, Christopher Faylor wrote > > On Tue, Nov 24, 1998 at 01:06:08PM -0000, Austin David France wrote: > >> Please try this with a recent snapshot, if you haven't already. > > > >Unfortunately, I am not able to build the latest snapshot (981116) due to > >missing headers (list.h and map.h) when building map.cc > > You'll need the complete distribution for those. They're in libstdc++, > I believe. What constitutes a complete distribution? I have dev-src and user-src as well as winsup-981116, all extracted in the same root source directory (/usr/local/src/cygwin-b20). I was sat in the src/winsup sub directory when I typed ./configure - perhaps that's my problem? I will start again. > > >> When reporting bugs like this it is very important to provide > >> complete information. We now have a program "cygcheck" which > >> will provide this. So, include cygcheck output with your > >> bug report. > > > >I am using Sergey's -11-8 version of the cygwin1.dll > >See attached cygcheck.txt file. > > Ok. You've provided more information but you've left out the most > important piece. > > What exactly is failing? It's not clear from the subject and going > back through the archives is not really something most of us have the > time to do. I described the problem at the start of this particular thread (Fri 20th Nov), and so assumed I did not need to repeat my self. Anyway, the problem is $ echo '#!/bin/bash' >/d/Mentor/Bin/xx $ echo 'echo $@' >>/d/Mentor/Bin/xx $ echo '#!/bin/bash' >/d/Mentor/Bin/xxyyzzx $ echo 'echo $@' >>/d/Mentor/Bin/xxyyzzx $ xx hello (hangs, ^c to abort) $ xxyyzzx hello hello $ The problem manifests itself as bash/cygwin1 refusing to run scripts with names shorter that 7 characters. Interestingly, if I use an absolute path name, it works fine $ /d/Mentor/Bin/xx hello hello If I use a blank line instead of #!/bin/bash, then I get the following results $ xx hello bash: /d/mentor/bin/xx: No such file or directory If I use another shell (#!/bin/ksh) for example, it still hangs. If I omit the path from the #! line (#!bash) I get the "No such file or directory" problem. If I use (#!/bin/sh) I get the message "/d/mentor/bin: Can't open /d/mentor/bin/" /bin is a symbolic link to /e/GnuWin32/cugwin-b20/H-i586-cygwin32/bin If I use the fully expanded path in the #! line, it hangs as before. A colleague (also on B20, NTW40SP4) has exactly the same problem, except that he can only run scripts > 5 characters in name length. The traces (found in previous messages in this thread) were an attempt to provide you with a bit more info to help you pinpoint where the problem might be. I have attached cygcheck.txt again, for your info. I can run these scripts successfully a b19 install on NT40SP3. Cheers Austin David France Mentor Systems plc mailto:adf AT mentor-systems DOT com ------=_NextPart_000_003F_01BE17E2.8C462E90 Content-Type: text/plain; name="cygcheck.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.txt" =0A= Cygnus Win95/NT Configuration Diagnostics=0A= Current System Time: Tue Nov 24 12:52:16 1998=0A= =0A= WinNT Ver 4.0 build 1381 Service Pack 4=0A= =0A= Path: /e/gnuwin32/CYGWIN~1/H-I586~1/bin=0A= /c/winnt/system32=0A= /d/mentor/bin=0A= =0A= SysDir: C:\WINNT\System32=0A= WinDir: C:\WINNT=0A= =0A= CYGWIN32 =3D `tty binmode ntea'=0A= CYGWIN =3D `tty'=0A= MAKE_MODE =3D `UNIX'=0A= PWD =3D `/h'=0A= =0A= !H: =3D `H:\'=0A= BASEMAKE =3D `d:\mentor\sdk\win32\Include\bkoffice.mak'=0A= BKOFFICE =3D `d:\mentor\sdk\win32\'=0A= COMPUTERNAME =3D `MENPC1'=0A= COMSPEC =3D `C:\WINNT\system32\cmd.exe'=0A= HOMEDRIVE =3D `H:'=0A= HOMEPATH =3D `\'=0A= HOMESHARE =3D `\\menpcsvr1\adf'=0A= HOSTNAME =3D `MENPC1'=0A= HOSTTYPE =3D `i586'=0A= INCLUDE =3D = `d:\mentor\sdk\win32\Include;f:\mentor\sdk\win32\Include;c:\program = files\devstudio\vc\include;c:\program = files\devstudio\vc\atl\include;c:\program = files\devstudio\vc\mfc\include;C:\Program Files\Mts\Include'=0A= INETSDK =3D `d:\mentor\sdk\win32'=0A= INFORMIXDIR =3D `C:\PROGRAM FILES\INFORMIX'=0A= LIB =3D `d:\mentor\sdk\win32\Lib;f:\mentor\sdk\win32\Lib;c:\program = files\devstudio\vc\lib;c:\program files\devstudio\vc\mfc\lib;C:\Program = Files\Mts\Lib'=0A= LOGONSERVER =3D `\\MENPCSVR1'=0A= MACHTYPE =3D `i586-pc-cygwin32'=0A= MROOT =3D `E:\Mentor\SDE\NT'=0A= MSDEVDIR =3D `C:\Program Files\DevStudio\SharedIDE'=0A= MSSDK =3D `d:\mentor\sdk\win32'=0A= MSTOOLS =3D `d:\mentor\sdk\win32'=0A= NUMBER_OF_PROCESSORS =3D `1'=0A= OS2LIBPATH =3D `C:\WINNT\system32\os2\dll;'=0A= OS =3D `Windows_NT'=0A= OSTYPE =3D `cygwin32'=0A= PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.JS'=0A= PROCESSOR_ARCHITECTURE =3D `x86'=0A= PROCESSOR_IDENTIFIER =3D `x86 Family 6 Model 5 Stepping 0, GenuineIntel'=0A= PROCESSOR_LEVEL =3D `6'=0A= PROCESSOR_REVISION =3D `0500'=0A= PROMPT =3D `$P$G'=0A= SHELL =3D `/bin/bash'=0A= SHLVL =3D `1'=0A= SYSTEMDRIVE =3D `C:'=0A= SYSTEMROOT =3D `C:\WINNT'=0A= TEMP =3D `C:\TEMP'=0A= TERM =3D `linux'=0A= TMP =3D `C:\TEMP'=0A= USERDOMAIN =3D `MENTOR'=0A= USERNAME =3D `adf'=0A= USERPROFILE =3D `C:\WINNT\Profiles\adf.000'=0A= WINDIR =3D `C:\WINNT'=0A= _ =3D `/e/gnuwin32/CYGWIN~1/H-I586~1/bin/cygcheck'=0A= =0A= Use `-r' to scan registry=0A= =0A= a:\ fd N/A N/A =0A= c:\ hd NTFS 2500Mb 87% CP CS UN PA FC =0A= d:\ hd NTFS 2441Mb 88% CP CS UN PA FC =0A= e:\ hd NTFS 4094Mb 63% CP CS UN PA FC =0A= f:\ hd FAT 2102Mb 44% CP UN =0A= g:\ cd CDFS 577Mb 100% CS NTWKS40A=0A= h:\ net NTFS 8746Mb 45% CP CS UN PA FC Data Drive 02=0A= n:\ net NTFS 8746Mb 52% CP CS UN PA FC Data Drive 01=0A= s:\ net NTFS 4357Mb 67% CP CS UN PA FC Net_Apps=0A= v:\ net NTFS 4000Mb 39% CP CS UN PA FC =0A= w:\ net NTFS 8056Mb 91% CP CS UN PA FC =0A= x:\ net NTFS 8056Mb 75% CP CS UN PA FC =0A= y:\ net NTFS 164Mb 2% CP CS UN PA FC TEMP=0A= z:\ net NTFS 4000Mb 39% CP CS UN PA FC =0A= =0A= e:\GnuWin32 / native text=3Dbinary=0A= c: /c native text=3Dbinary=0A= d: /d native text=3Dbinary=0A= \\.\a: /dev/fd0 native text=3Dbinary=0A= \\.\b: /dev/fd1 native text=3Dbinary=0A= \\.\tape0: /dev/st0 native text=3Dbinary=0A= \\.\tape1: /dev/st1 native text=3Dbinary=0A= e: /e native text=3Dbinary=0A= f: /f native text=3Dbinary=0A= g: /g native text=3Dbinary=0A= h: /h native text=3Dbinary=0A= =0A= Found: e:\gnuwin32\CYGWIN~1\H-I586~1\bin\bash.exe=0A= Found: e:\gnuwin32\CYGWIN~1\H-I586~1\bin\cat.exe=0A= Not Found: cpp=0A= Found: e:\gnuwin32\CYGWIN~1\H-I586~1\bin\find.exe=0A= Found: e:\gnuwin32\CYGWIN~1\H-I586~1\bin\gcc.exe=0A= Found: e:\gnuwin32\CYGWIN~1\H-I586~1\bin\gdb.exe=0A= Found: e:\gnuwin32\CYGWIN~1\H-I586~1\bin\ld.exe=0A= Found: e:\gnuwin32\CYGWIN~1\H-I586~1\bin\ls.exe=0A= Found: e:\gnuwin32\CYGWIN~1\H-I586~1\bin\make.exe=0A= Found: e:\gnuwin32\CYGWIN~1\H-I586~1\bin\sh.exe=0A= =0A= 707k 1998/11/08 C:\WINNT\System32\cygwin1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygwin1.dll" v0.0 ts=3D1998/11/8 16:59=0A= 707k 1998/11/11 C:\WINNT\System32\cygwinb19.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygwin1.dll" v0.0 ts=3D1998/11/8 16:59=0A= 371k 1998/11/02 e:\gnuwin32\CYGWIN~1\H-I586~1\bin\cygtcl80.dll - = os=3D4.0 img=3D1.0 sys=3D4.0=0A= "cygtcl80.dll" v0.0 ts=3D1998/11/2 13:22=0A= 5k 1998/11/02 e:\gnuwin32\CYGWIN~1\H-I586~1\bin\cygtclpip80.dll - = os=3D4.0 img=3D1.0 sys=3D4.0=0A= 10k 1998/11/02 e:\gnuwin32\CYGWIN~1\H-I586~1\bin\cygtclreg80.dll - = os=3D4.0 img=3D1.0 sys=3D4.0=0A= "cygtclreg80.dll" v0.0 ts=3D1998/11/2 13:22=0A= 600k 1998/11/02 e:\gnuwin32\CYGWIN~1\H-I586~1\bin\cygtk80.dll - = os=3D4.0 img=3D1.0 sys=3D4.0=0A= "cygtk80.dll" v0.0 ts=3D1998/11/2 13:27=0A= 429k 1998/10/29 e:\gnuwin32\CYGWIN~1\H-I586~1\bin\cygwin1-b20.dll - = os=3D4.0 img=3D1.0 sys=3D4.0=0A= "cygwin1.dll" v0.0 ts=3D1998/10/29 23:33=0A= 707k 1998/11/08 e:\gnuwin32\CYGWIN~1\H-I586~1\bin\cygwin1.dll - = os=3D4.0 img=3D1.0 sys=3D4.0=0A= "cygwin1.dll" v0.0 ts=3D1998/11/8 16:59=0A= Use -h to see help about each section=0A= ------=_NextPart_000_003F_01BE17E2.8C462E90-- ------------------------------------------------------------------------ The views and opinions expressed in this e-mail message are the sender's and do not necessarily represent the views of Mentor Systems plc. ------------------------------------------------------------------------