This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bug in /bin/sh.exe (ash-20000823)



Synopsis:
---------

        /bin/sh.exe fails to execute a binary program
        that has no ".exe" extension, if the pathname
        used to invoke his executable program contains
        at least one slash.

Comments:
---------

	This bug was observed both on Windows NT4 and 
	Windows 2000 Professional.

	This bug also occured with the previous version
	of /bin/sh.exe

        This bug does NOT occur with /bin/bash.exe

How to reproduce the bug
------------------------

Open a Cygwin window and type 
	/bin/sh
to switch from bash to sh.

Then, type

cd /tmp

# part 1 of the test : files without any extension

cp /bin/echo.exe mytest
mytest 
#	--> is OK if you have . in $PATH
./mytest
#	--> not OK : ./mytest: not found
/tmp/mytest
#	--> not OK : /tmp/mytest: not found
	
# part 2 of the test : files with an extension different from ".exe"
# (here, ".x")

mv mytest mytest.x
mytest.x
#	--> is OK
./mytest.x
#	--> not OK : ./mytest: not found
/tmp/mytest.x
#	--> not OK : /tmp/mytest.x: not found

# part 3 of the test : files with the ".exe" extension

mv mytest.x mytest.exe
mytest
#	--> is OK
./mytest
#	--> is OK
./mytest.exe
#	--> is OK
/tmp/mytest
#	--> is OK
/tmp/mytest.exe
#	--> is OK

Output of cygcheck
------------------

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Fri Sep 29 15:52:32 2000

WinNT Ver 4.0 build 1381 Service Pack 4

Path:	/cadp/com
	/cadp/bin.win32
	/usr/local/bin
	/usr/bin
	/usr/bin
	/WINNT/system32
	/WINNT
	/WINNT/system32/nls/ENGLISH
	/WINNT/system32/nls
	P
	.
	Y
	.
	Z
	.
	X
	.
	W
	.
	V
	.
	U
	.
	T
	.
	S
	.
	R
	.
	Q
	.

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

HOME = `/home/orafiq'
MAKE_MODE = `unix'
PWD = `/home/orafiq'
USER = `orafiq'

!C: = `C:\bin'
!F: = `F:\'
!G: = `G:\'
!H: = `H:\'
!P: = `P:\'
!Q: = `Q:\'
!R: = `R:\'
!S: = `S:\'
!T: = `T:\'
!U: = `U:\'
!V: = `V:\'
!W: = `W:\'
!X: = `X:\'
!Y: = `Y:\'
!Z: = `Z:\'
CADP = `/cadp'
CADP_CC = `/cadp/src/windows/cc'
COMPUTERNAME = `OMAR'
COMSPEC = `C:\WINNT\system32\cmd.exe'
DJGPP = `g:\winntapp\djgpp\djgpp.env'
DOS4G = `quiet'
HOMEDRIVE = `C:'
HOMEPATH = `\'
HOSTNAME = `OMAR'
HOSTTYPE = `i586'
LM_LICENSE_FILE = `7598@prg0'
LOGONSERVER = `\\OMAR'
MACHTYPE = `i586-pc-cygwin'
MITSCHEME_LIBRARY_PATH = `g:\windows\scheme\lib'
MSWORD = `yes'
NUMBER_OF_PROCESSORS = `1'
NWLANGUAGE = `ENGLISH'
NWUSERNAME = `orafiq'
OLDPWD = `/usr/bin'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin'
PATHEXT = `.COM;.EXE;.BAT;.CMD'
PINECONF = `g:\windows\pine\pinerc'
PINERC = `h:\pine\pinerc'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 3 Stepping 4, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0304'
PROMPT = `$P$G'
PS1 = `]0;\w
\u@\h \w
$ '
SAPACAM = `c:\windows\command'
SHELL = `/bin/sh'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `/TEMP'
TERM = `cygwin'
TZ = `est5std'
USERDOMAIN = `OMAR'
USERID = `orafiq'
USERNAME = `orafiq'
USERPROFILE = `C:\WINNT\Profiles\orafiq'
WINDIR = `C:\WINNT'
WINDOWS_LOGIN = `0'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  NTFS    2055Mb  37% CP CS UN PA FC     
d:  hd  NTFS    2055Mb   6% CP CS UN PA FC     
e:  cd           N/A    N/A                    
f:  net NWFS    1847Mb  44% CP          FC     SYS
g:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
h:  net NWFS    1100Mb  96% CP          FC     USERS
p:  net NWFS    1847Mb  44% CP          FC     SYS
q:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
r:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
s:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
t:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
u:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
v:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
w:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
x:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
y:  net NWFS   17405Mb  56% CP          FC     SOFTWARE
z:  net NWFS   17405Mb  56% CP          FC     SOFTWARE

C:\bin  /usr/bin  system  binmode
C:\lib  /usr/lib  system  binmode
C:    /        system  binmode

Found: C:\bin\bash.exe
Found: \bin\bash.exe
Warning: C:\bin\bash.exe hides \bin\bash.exe
Found: C:\bin\cat.exe
Found: \bin\cat.exe
Warning: C:\bin\cat.exe hides \bin\cat.exe
Found: C:\bin\cpp.exe
Found: \bin\cpp.exe
Warning: C:\bin\cpp.exe hides \bin\cpp.exe
Found: C:\bin\find.exe
Found: \bin\find.exe
Warning: C:\bin\find.exe hides \bin\find.exe
Found: C:\bin\gcc.exe
Found: \bin\gcc.exe
Warning: C:\bin\gcc.exe hides \bin\gcc.exe
Found: C:\bin\gdb.exe
Found: \bin\gdb.exe
Warning: C:\bin\gdb.exe hides \bin\gdb.exe
Found: C:\bin\ld.exe
Found: \bin\ld.exe
Warning: C:\bin\ld.exe hides \bin\ld.exe
Found: C:\bin\ls.exe
Found: \bin\ls.exe
Warning: C:\bin\ls.exe hides \bin\ls.exe
Found: C:\bin\make.exe
Found: \bin\make.exe
Warning: C:\bin\make.exe hides \bin\make.exe
Found: C:\bin\sh.exe
Found: \bin\sh.exe
Warning: C:\bin\sh.exe hides \bin\sh.exe

   83k 2000/06/11 C:\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/6/10 23:34
   35k 2000/06/11 C:\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/6/10 23:34
  402k 2000/06/11 C:\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/6/10 23:30
    5k 2000/06/11 C:\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/06/11 C:\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/6/10 23:30
  639k 2000/06/11 C:\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/6/10 23:34
  586k 2000/08/04 C:\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2000/8/3 20:53
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 4
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        api major: 0
        api minor: 26
        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
        build date: Thu Aug 3 20:53:46 EDT 2000
        CVS tag: cygwin-1-1-4
        shared id: cygwin1S3

   83k 2000/06/11 \bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/6/10 23:34
   35k 2000/06/11 \bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/6/10 23:34
  402k 2000/06/11 \bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/6/10 23:30
    5k 2000/06/11 \bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/06/11 \bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/6/10 23:30
  639k 2000/06/11 \bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/6/10 23:34
  586k 2000/08/04 \bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2000/8/3 20:53
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 4
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        api major: 0
        api minor: 26
        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
        build date: Thu Aug 3 20:53:46 EDT 2000
        CVS tag: cygwin-1-1-4
        shared id: cygwin1S3

Use -h to see help about each section



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]