[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] $EDITOR with spaces

From: Tim Waugh <twaugh_at_redhat.com>
Date: 2002-04-18 11:03:03 CEST

On Thu, Apr 18, 2002 at 10:54:55AM +0200, Daniel Stenberg wrote:

> > What say we just forget it and call system() for this particular case, and
> > let the shell handle that for us? For Windows, we just have to document
> > that if you have spaces in the path, you must enclose the program name in
> > double quotes, and cmd.exe (or command.com) will just magically DTRT.
> The reasons for not using system() still remain the same ones as before I
> take it.

A safer way of doing what you want might be to use the wordexp


  • application/pgp-signature attachment: stored
Received on Thu Apr 18 11:04:02 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.