You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1997/08/21 20:24:01 UTC

Re: Spaces in Win32 executable names

Oh yeah, DOS-derivative operating systems.  They all pass an unparsed
command line to commands.  The command is responsible for argument
busting, and globbing.  Joy joy.

Dean

On Thu, 21 Aug 1997, Ben Laurie wrote:

> Well, I finally got VC++ 5 to debug Apache (I had to set the working
> directory to ...\apachen\CoreD, or it complained that it couldn't find
> ApacheCore.dll [which is not what the manual sez]), to look into the
> spaces in executables thing.
> 
> The good news is, it ain't our fault. Basicly what happens is this;
> spawnle() (and friends) reconstruct a command line (separated with guess
> what? Yes! Spaces!) and end up, after a _lot_ of messing about, by
> calling CreateProcess(), which, I presume, parses the command line in an
> entirely wrong way, and fails. The strange thing is, it thinks it
> succeeded. Possibly this is because I'm using a .BAT file to test this,
> and what it does is run CMD.EXE (or whatever it is called these days)
> which works, of course, but then goes splat coz it can't find the batch
> file. Or something.
> 
> So much for long filename support.
> 
> There may be a way to work around this, but I can't be bothered.
> 
> BTW, the reason I was doing this at all was testing name
> canonicalisation on CGIs. The result is this (on a request of
> .../scripts/copy_o~1.bat):
> 
> SCRIPT_FILENAME=c:/apachetest/scripts/copy_of_t1.bat
> REQUEST_URI=/scripts/copy_o~1.bat
> SCRIPT_NAME=/scripts/copy_o~1.bat
> 
> Is that what people would expect?
> 
> Cheers,
> 
> Ben.
> 
> -- 
> Ben Laurie            |Phone: +44 (181) 994 6435|Apache Group member
> Freelance Consultant  |Fax:   +44 (181) 994 6472|http://www.apache.org
> and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
> A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
> London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache
>