This is the mail archive of the 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]

Re: Does cygstart always expand arguments?

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


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,
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Problem reports:

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