From owner-freebsd-hackers Sun Jan 27 18:18:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 7469837B404 for ; Sun, 27 Jan 2002 18:18:42 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.6/8.11.6) id g0S2Ib435338; Sun, 27 Jan 2002 20:18:37 -0600 (CST) (envelope-from dan) Date: Sun, 27 Jan 2002 20:18:36 -0600 From: Dan Nelson To: Dan Langille Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: shell scripts that hang around forever Message-ID: <20020128021836.GA87617@dan.emsphone.com> References: <200201280119.g0S1JHD97804@lists.unixathome.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200201280119.g0S1JHD97804@lists.unixathome.org> User-Agent: Mutt/1.3.25i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jan 27), Dan Langille said: > Folks: have a look at this FreshPorts shell script and let me know if > there is a better way to do this. Apart from maybe using echo instead of forking 'ls', and caching the list: while : ; do FILES=`echo *` if [ "$FILES" != "*" ] ; then for i in $FILES ; do $HOME/scripts/test-freebsd-cvs.sh $i ; done fi done it looks fine. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message