delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/24/08:55:53

X-Spam-Check-By: sourceware.org
Date: Fri, 24 Mar 2006 08:55:41 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: zzapper <david AT tvis DOT co DOT uk>
cc: cygwin AT cygwin DOT com
Subject: Re: The Beauty of Cygstart
In-Reply-To: <Xns979067AC0328Czzappergmailcom@80.91.229.5>
Message-ID: <Pine.GSO.4.63.0603240851170.16018@access1.cims.nyu.edu>
References: <Xns979067AC0328Czzappergmailcom AT 80 DOT 91 DOT 229 DOT 5>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Fri, 24 Mar 2006, zzapper wrote:

> zzapper <david AT XXXX DOT XX DOT XX> wrote in news:Xns979065E51F443zzappergmailcom AT 80 DOT 91 DOT 229 DOT 5:

Even it if's your own, <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.

> Whoops forget the vital & (launch in own process)
>
> function cs() {cygstart *$1* &}
> function csn() {cygstart "$(/bin/ls -t *.* | head -1)" &}
> function csl() { cygstart.exe *$(history -1 | sed "s/.* //g")* & }

The "&" isn't needed for cygstart, as it simply tells the shell to execute
the proper association and exits.  The only point at which backgrounding
would help is the short time it takes for the shell to figure out what the
association is (nearly instantaneous on my machine).

FWIW, another use for cygstart is to launch a Cygwin application in a new
window (e.g., I use "cygstart bash" quite a bit) and to launch some
Windows application without leaving the Cygwin exec stub process behind
(e.g., "cygstart setup" is very very useful).

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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