2008/5/9 Steph Fox <[EMAIL PROTECTED]>: > Hi Richard, > >>> Wouldn't having /cygwin/bin permanently in your PATH screw up native >>> executables throughout? Can you use MS rmdir on your system at all? >>> >> No. As in normal windows, shell commands take precedence over >> programs/scripts, even with the same name. If I want to use a cygwin >> program in preference to a windows one, then I will either delete or >> rename the windows one. If I can't do that, then I will put the cygwin >> version in a tools directory which is in the path before windows, et >> al. >> >> rmdir does not exist as an "executable" in windows/dos. It is part of >> the shell (command.com/cmd.exe). There is no "program" (or script or >> anything) called rmdir.anything. > > ... that's what 'alias' means. > >> Here is some steps I've taken to show the problem. If you don't have >> cygwin in your path, then this isn't an issue. But I do and I use >> cygwin tools all day. This patch removes the problem. For the last 20 >> years of software development, I've always used md/cd/rd rather than >> mkdir/chdir/rmdir. In windows they are the same thing. > > Eh, I'm just trying to figure out whether that conflict's specific to your > setup or not. Don't take it personally ;) but if it's an issue for all, > sure, the patch goes in. If it's just you, it probably doesn't. > > I uninstalled cygwin about 5 weeks ago when I had a stuffed hard disk, so I > can't check for myself what happens with PATH and cygwin. I didn't have any > problems with it when it was there, just - as you say - it's not essential > for docs any more, and that's about all I used it for. > > We need someone else to confirm/deny. > > - Steph >
You don't actually need to install cygwin to see the fault. Create a batch file called rmdir.bat like this ... @ECHO OFF ECHO You are running %0 ECHO The parameters you supplied are: ECHO 1 : %1 ECHO 2 : %2 ECHO 3 : %3 ECHO 4 : %4 ECHO 5 : %5 PAUSE Place this in your path. Put it in the last directory in your path. My last path entry happens to be a common folder for Nero. (C:\Program Files\Common Files\Ahead\Lib". I've renamed the cygwin folder. I put the above batch file in the common folder location. vcvars32.bat'd myself. name clean-pecl Outputs ... Setting environment for using Microsoft Visual Studio 2008 x86 tools. 2008/05/09 11:55:44 C:\Work\php-src-PHP_5_3>nmake clean-pecl Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. Cleaning PECL targets only rmdir /s /q Release_TS\pecl You are running "C:\Program Files\Common Files\Ahead\Lib\rmdir.BAT" The parameters you supplied are: 1 : /s 2 : /q 3 : Release_TS\pecl 4 : 5 : Press any key to continue . . . Remove rmdir.bat and all works as expected. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php