This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.7.1: Problem with cygstart and arguments containing spaces


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]