From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37683 invoked by alias); 12 Nov 2019 22:16:12 -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 37665 invoked by uid 89); 12 Nov 2019 22:16:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: smtp97.iad3b.emailsrvr.com Received: from smtp97.iad3b.emailsrvr.com (HELO smtp97.iad3b.emailsrvr.com) (146.20.161.97) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2019 22:16:11 +0000 X-Auth-ID: alfred@von-campe.com Received: by smtp21.relay.iad3b.emailsrvr.com (Authenticated sender: alfred-AT-von-campe.com) with ESMTPSA id B33F82026A; Tue, 12 Nov 2019 17:16:09 -0500 (EST) X-Sender-Id: alfred@von-campe.com Received: from alfreds-mbp.bose.com ([UNAVAILABLE]. [139.68.81.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:465 (trex/5.7.12); Tue, 12 Nov 2019 17:16:09 -0500 From: Alfred von Campe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Date: Tue, 12 Nov 2019 22:16:00 -0000 Subject: Unexpected behavior from cygpath command Message-Id: <033F0B97-041F-4BE4-916E-FD4361142193@von-campe.com> To: cygwin@cygwin.com X-IsSubscribed: yes X-SW-Source: 2019-11/txt/msg00055.txt.bz2 I have two almost identical build servers, but cygpath is not behaving as e= xpected on one of them. Here is the output from the =E2=80=9Cgood=E2=80=9D= build server: $ cygpath.exe =E2=80=94version | head -1 cygpath (cygwin) 2.11.2 =20=20 $ cygpath -d 'E:\Program Files (x86)\IAR Systems' E:\PROGRA~1\IARSYS~1 Cygpath has correctly converted the given path to DOS (8.3) format as expec= ted. Here is the output from the =E2=80=9Cbad=E2=80=9D build server. $ cygpath.exe =E2=80=94version | head -1 cygpath (cygwin) 2.11.1 $ cygpath -d 'E:\Program Files (x86)\IAR Systems' E:\Program Files (x86)\IAR Systems Why is cygpath returning the same path passed in? Oh wait, it=E2=80=99s ru= nning a slightly older version (2.11.1 vs 2.11.2). Perhaps there was a bug= in the earlier version. Let me update the Cygwin installation and try aga= in: $ cygpath =E2=80=94version | head -1 cygpath (cygwin) 3.1.0 $ cygpath -d 'E:\Program Files (x86)\IAR Systems' E:\Program Files (x86)\IAR Systems WTF? Why is it still doing this? Can there be a global config setting tha= t affects cygpath=E2=80=99s behavior? Hmm, let me try a different approach: $ cygpath -d "$(cygpath -u 'E:\Program Files (x86)\IAR Systems')" E:\PROGRA~1\IARSYS~1 Hey, cygpath can convert to DOS paths on this system after all, just not wh= en it=E2=80=99s given a Windows path. Can anyone explain this behavior? Alfred -- 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