Win32OperatingSystem.st
changeset 9381 dc7cafee2955
parent 9264 2ad8f83a31ac
child 9384 5c5dd48a9fdd
--- a/Win32OperatingSystem.st	Mon Jun 19 16:13:02 2006 +0200
+++ b/Win32OperatingSystem.st	Mon Jun 19 16:13:34 2006 +0200
@@ -3135,31 +3135,37 @@
     |path f fExt|
 
     aCommand asFilename isAbsolute ifTrue:[
-	aCommand asFilename exists ifTrue:[
-	    ^ aCommand
-	].
-	^ nil
+        aCommand asFilename exists ifTrue:[
+            ^ aCommand
+        ].
+        ^ nil
     ].
 
     path := self getEnvironment:'PATH'.
     path notNil ifTrue:[
-	(path asCollectionOfSubstringsSeparatedBy:(self pathSeparator)) do:[:path |
-	    path isEmpty ifTrue:[
-		f := aCommand asFilename
-	    ] ifFalse:[
-		f := path asFilename construct:aCommand.
-	    ].
-	    self executableFileExtensions do:[:ext |
-		ext notEmpty ifTrue:[
-		    fExt := (f pathName , '.' , ext) asFilename.
-		] ifFalse:[
-		    fExt := f.
-		].
-		fExt isExecutable ifTrue:[
-		    ^ fExt pathName
-		].
-	    ].
-	].
+        (path asCollectionOfSubstringsSeparatedBy:(self pathSeparator)) do:[:path |
+            path isEmpty ifTrue:[
+                f := aCommand asFilename
+            ] ifFalse:[
+                f := path asFilename construct:aCommand.
+            ].
+            f suffix isEmpty ifTrue:[
+                self executableFileExtensions do:[:ext |
+                    ext notEmpty ifTrue:[
+                        fExt := (f pathName , '.' , ext) asFilename.
+                    ] ifFalse:[
+                        fExt := f.
+                    ].
+                    fExt isExecutable ifTrue:[
+                        ^ fExt pathName
+                    ].
+                ].
+            ] ifFalse:[
+                f isExecutable ifTrue:[
+                    ^ f pathName
+                ].
+            ].
+        ].
     ].
     ^ nil
 
@@ -3167,6 +3173,8 @@
 
      OperatingSystem pathOfCommand:'bcc32'
      OperatingSystem pathOfCommand:'diff'
+     OperatingSystem pathOfCommand:'cvs' 
+     OperatingSystem pathOfCommand:'cvs.exe' 
     "
 
     "Modified: / 10.9.1998 / 17:51:49 / cg"
@@ -11271,7 +11279,7 @@
 !Win32OperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.229 2006-03-10 17:05:15 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.230 2006-06-19 14:13:34 mb Exp $'
 ! !
 
 Win32OperatingSystem initialize!