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 Message-ID: <3E6CAC32.9040109@isg.de> Date: Mon, 10 Mar 2003 16:16:02 +0100 From: Tino Lange Organization: IS Innovative Software AG User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: de, en-us, en, fr MIME-Version: 1.0 To: cygwin AT cygwin DOT com Cc: hauser AT acm DOT org Subject: Re: cygpath "$@" in a script: bug? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Then you will call cygpath x-times, which is quite inefficient for large globbing with wildcards. Better do something like *** snip *** #! /bin/sh for file in "$@"; do memfile="${memfile:-""}$file\n" done $(echo -e "$memfile" | cygpath -w -f -) *** snip *** which results in just one call via an in -memory file-list. Tino -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/