delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/03/04:05:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B8E2648.3070603@charlesroper.co.uk>
Date: Wed, 03 Mar 2010 09:05:12 +0000
From: Charles Roper <reachme AT charlesroper DOT co DOT uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Lightning/1.0b1 Thunderbird/3.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: 1.7.1: Problem with cygstart and arguments containing spaces
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019