1.7.1: Problem with cygstart and arguments containing spaces

Charles Roper reachme@charlesroper.co.uk
Wed Mar 3 09:05:00 GMT 2010


I am trying to launch instances of Console 2.00b145 [1] from my Cygwin 
bash shell. I am using Console's -d switch to specify the startup 
directory. The following works:

$ "/cygdrive/d/Software/Console2/Console.exe" -d "C:/Program Files"

As does this:
$ "D:/Software/Console2/Console.exe" -d "C:/Program Files"

However, I need to run Console using the cygstart command. The following 
works and a Console window opens at "C:\Users":

$ cygstart "D:/Software/Console2/Console.exe" -d "C:/Users"

The thing is, if there is a space in the path after the -d switch, the 
argument doesn't work correctly:

$ cygstart "D:/Software/Console2/Console.exe" -d "C:/Program Files"

$ cygstart "/cygdrive/d/Software/Console2/Console.exe" -d "C:/Program Files"

Neither of those will yield a Console at the correct directory; instead, 
Console defaults to its installed location.

Is this an issue with cygstart, or should I be looking at Console itself 
as the culprit here?

Many thanks,
Charles

[1] https://sourceforge.net/projects/console/







--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list