X-Spam-Check-By: sourceware.org Message-ID: <453F9465.EE37B4B7@dessent.net> Date: Wed, 25 Oct 2006 09:44:21 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/