From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95745 invoked by alias); 23 Nov 2015 20:45:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 95737 invoked by uid 89); 23 Nov 2015 20:45:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f50.google.com Received: from mail-pa0-f50.google.com (HELO mail-pa0-f50.google.com) (209.85.220.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 23 Nov 2015 20:45:56 +0000 Received: by pabfh17 with SMTP id fh17so208039775pab.0 for ; Mon, 23 Nov 2015 12:45:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=CQJdw0cwMlawE2jRxYmJbNxxdVrrdT9zVoawKXouaD4=; b=iUnIbu3aN3+IdAkL9QGMkBIoo/e3S/d0Sv8Saak1u2qV+VxiBHmEmXWgjcl2fK3vuD nVsXmE7RpN85BZchiD8PF67q3lORlkm8oDmRmS7b4fb+DnNnvvt75jhZ//WaoxMX68oP mYrF4JpO44sfj8wiqPW1ES2CsmEn8Ku3ANJVqz3wBoNEqJa8yms/8dSHAK4K5N9gb4Np CfhWJX/PUuQNH2sSBSGty4w0OlwPc8WcrrXlnQNrXuTudK7pf1EDDrUBgJb55dwS1W0G XiHqm4JW9rxgvBh3xqKp9tMV2ywalFY0xSDDmtnKDvaAY9gRN+UcVpvhkzejGuSS+wtf b+ZQ== X-Received: by 10.68.163.97 with SMTP id yh1mr37647755pbb.36.1448311555011; Mon, 23 Nov 2015 12:45:55 -0800 (PST) Received: from [10.0.1.109] (ip72-209-49-95.ri.ri.cox.net. [72.209.49.95]) by smtp.gmail.com with ESMTPSA id m70sm11081929pfi.65.2015.11.23.12.45.54 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Nov 2015 12:45:54 -0800 (PST) To: cygwin@cygwin.com From: "Matt D." Subject: Calling cygpath from find exec? Message-ID: <56537B03.4050204@codespunk.com> Date: Mon, 23 Nov 2015 21:14:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-11/txt/msg00367.txt.bz2 Is there a reason why these produce different results? find . -exec cygpath -wa {} \; find . -exec echo $(cygpath -wa {}) \; I have to do this which is much slower: find . -exec bash -c 'echo $(cygpath -wa {})' \; Or this: find . | while read a; do echo $(cygpath -wa $a); done Matt D. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple