delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-ID: | <3E6CAC32.9040109@isg.de> |
Date: | Mon, 10 Mar 2003 16:16:02 +0100 |
From: | Tino Lange <tino DOT lange AT isg DOT de> |
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: | <Pine DOT GSO DOT 4 DOT 44 DOT 0303101001390 DOT 11568-100000 AT slinky DOT cs DOT nyu DOT edu> |
In-Reply-To: | <Pine.GSO.4.44.0303101001390.11568-100000@slinky.cs.nyu.edu> |
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 <application> $(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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |