| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | zzapper <david AT tvis DOT co DOT uk> |
| Subject: | Re: The Beauty of Cygstart |
| Date: | Fri, 24 Mar 2006 14:44:33 +0000 (UTC) |
| Lines: | 32 |
| Message-ID: | <Xns979095F71C768zzappergmailcom@80.91.229.5> |
| References: | <Xns979067AC0328Czzappergmailcom AT 80 DOT 91 DOT 229 DOT 5> <Pine DOT GSO DOT 4 DOT 63 DOT 0603240851170 DOT 16018 AT access1 DOT cims DOT nyu DOT edu> |
| User-Agent: | Xnews/5.04.25 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| 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 |
Igor Peshansky <pechtcha AT cs DOT nyu DOT edu> wrote in
news:Pine DOT GSO DOT 4 DOT 63 DOT 0603240851170 DOT 16018 AT access1 DOT cims DOT nyu DOT edu:
> 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).
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |