delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/13/17:42:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 13 May 2003 17:39:07 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Jim Kleckner <jek-cygwin AT kleckner DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: Does cygstart always expand arguments?
In-Reply-To: <3EC16473.6000701@kleckner.net>
Message-ID: <Pine.GSO.4.44.0305131736020.17480-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Tue, 13 May 2003, Jim Kleckner wrote:

> I was trying to get cygpath and cygstart to launch
> a non-cygwin-compiled program (gvim) and running
> into difficulties with files that have spaces in
> them.  e.g.:
>
>    echo hello > "file with spaces.txt"
>    cygstart gvim "file with spaces.txt"
>
> causes gvim to see three files, "file",
> "with", and "spaces.txt".
>
> Is this a basic Windows limitation or is there
> some hack to get around this?  cygstart appears to
> be the dead end.
>
> Thanks - Jim

Jim,

I think you're confused about what cygstart does.  Cygstart is for
situations when, given a data file, you want to run the associated
application, like double-clicking it in explorer.  While you can use it to
launch .exe's (by definition), it's probably not what you want in this
case.  Try invoking gvim without cygstart, i.e., simply

$ gvim "file with spaces.txt"

Hope this helps,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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

- Raw text -


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