delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/25/13:11:11

X-Spam-Check-By: sourceware.org
Message-ID: <453F99D6.3040608@wi.rr.com>
Date: Wed, 25 Oct 2006 12:07:34 -0500
From: Joey Officer <jofficer AT wi DOT rr DOT com>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin out of sync with version?
References: <453F74AC DOT 4060304 AT wi DOT rr DOT com> <453F9465 DOT EE37B4B7 AT dessent DOT net>
In-Reply-To: <453F9465.EE37B4B7@dessent.net>
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

I can certainly update the script, and will let you know how it runs...

Thanks for the input,
joey


Brian Dessent wrote:
> Joey Officer wrote:
>
>   
>>         for i in $( ls *.gz ); do
>>     
>
> This needlessly forks a subshell process and a /bin/ls process for no
> apparent reason.  For better performance and readability just let the
> shell do the globbing:
>
> for i in *.gz; do
>
> Brian
>
> --
> 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/
>
>   

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