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]

Re: The Beauty of Cygstart


Igor Peshansky <pechtcha@cs.nyu.edu> wrote in
Pine.GSO.4.63.0603240851170.16018@access1.cims.nyu.edu:">news:Pine.GSO.4.63.0603240851170.16018@access1.cims.nyu.edu: 

> On Fri, 24 Mar 2006, zzapper wrote:
> 
>> zzapper <david@XXXX.XX.XX> wrote in
>> Xns979065E51F443zzappergmailcom@80.91.229.5:">news:Xns979065E51F443zzappergmailcom@80.91.229.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). 

Drat!!
Igor,
Its funny how easy it is to "panic" when posting to a newsgroup, i've 
never NEEDED the & myself, but some reason when I did a quick test the 
application hung and I jumped to wrong conclusion!
Dave


-- 
http://successtheory.com/ 100 FREE Success and Self-Improvement Tips


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


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