From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44852 invoked by alias); 10 Feb 2017 21:47:06 -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 42066 invoked by uid 89); 10 Feb 2017 21:47:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1737, glob X-HELO: esa6.dell-outbound.iphmx.com Received: from Unknown (HELO esa6.dell-outbound.iphmx.com) (68.232.149.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Feb 2017 21:46:54 +0000 Received: from esa6.dell-outbound2.iphmx.com ([68.232.154.99]) by esa6.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2017 15:46:37 -0600 From: "Gluszczak, Glenn" Received: from mailuogwdur.emc.com ([128.221.224.79]) by esa6.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2017 03:46:36 +0600 Received: from maildlpprd56.lss.emc.com (maildlpprd56.lss.emc.com [10.106.48.160]) by mailuogwprd51.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id v1ALkZSh001279 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 10 Feb 2017 16:46:35 -0500 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd51.lss.emc.com v1ALkZSh001279 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd51.lss.emc.com v1ALkZSh001279 Received: from mailusrhubprd51.lss.emc.com (mailusrhubprd51.lss.emc.com [10.106.48.24]) by maildlpprd56.lss.emc.com (RSA Interceptor) for ; Fri, 10 Feb 2017 16:45:58 -0500 Received: from MXHUB205.corp.emc.com (MXHUB205.corp.emc.com [10.253.68.31]) by mailusrhubprd51.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id v1ALkLH2002550 (version=TLSv1.2 cipher=AES128-SHA256 bits=128 verify=FAIL) for ; Fri, 10 Feb 2017 16:46:22 -0500 Received: from MX204CL04.corp.emc.com ([fe80::5c2f:a83c:a32d:4b29]) by MXHUB205.corp.emc.com ([10.253.68.31]) with mapi id 14.03.0266.001; Fri, 10 Feb 2017 16:46:21 -0500 To: "cygwin@cygwin.com" Subject: RE: cygpath Date: Fri, 10 Feb 2017 21:47:00 -0000 Message-ID: <91DCAC3CB99C724EB365BB64677FBE7B139C41@MX204CL04.corp.emc.com> References: <91DCAC3CB99C724EB365BB64677FBE7B139A86@MX204CL04.corp.emc.com> <151946397.20170210223617@yandex.ru> <91DCAC3CB99C724EB365BB64677FBE7B139AF9@MX204CL04.corp.emc.com> <126350824.20170211003439@yandex.ru> In-Reply-To: <126350824.20170211003439@yandex.ru> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd51.lss.emc.com X-RSA-Classifications: public X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00143.txt.bz2 I suppose the glob explanation from Michael explains this behavior in sh. Though unsupported, it seems to work (probably some side cases do not). $ cygpath -w /usr/bin/* C:\cygwin64\bin\[.exe C:\cygwin64\bin\2to3 C:\cygwin64\bin\addftinfo.exe C:\cygwin64\bin\addr2line.exe C:\cygwin64\bin\whatis.exe C:\cygwin64\bin\ar.exe C:\cygwin64\bin\arch.exe C:\cygwin64\bin\as.exe C:\cygwin64\bin\ash.exe C:\cygwin64\bin\gawk.exe C:\cygwin64\bin\b2sum.exe .... -----Original Message----- Greetings, Gluszczak, Glenn! > * is a legal character for ls but perhaps not cygpath? "*" is not a legal path name character. And cygpath expects a path. > I don't know. > No files or directories are using * in the name.=20 See above. > Not sure about incorrect terminal settings as I never touched any.=20=20 > It shows up in mintty and ssh equally. The characters that appear vary. For me, it shows a single blank box character. (The required character is m= issing from the font I'm using in mintty.) > Some non-existent paths do *not* produce the gibberish. > %%%cygpath -w /aaa/bbb/* > C:\cygwin\aaa\bbb\ Works equally for me. $ cygpath -w /usr/non-existent/* | od -t x1 0000000 43 3a 5c 50 72 6f 67 72 61 6d 73 5c 43 79 67 77 0000020 69 6e 5f 36 34 5c 75 73 72 5c 6e 6f 6e 2d 65 78 0000040 69 73 74 65 6e 74 5c ef 80 aa 0a 0000053 $ cygpath -w /aaa/bbb/* | od -t x1 0000000 43 3a 5c 50 72 6f 67 72 61 6d 73 5c 43 79 67 77 0000020 69 6e 5f 36 34 5c 61 61 61 5c 62 62 62 5c ef 80 0000040 aa 0a 0000042 Also please don't top-post https://cygwin.com/acronyms/#TOFU and don't quot= e raw email addresses. https://cygwin.com/lists.html -- With best regards, Andrey Repin Saturday, February 11, 2017 00:27:02 Sorry for my terrible english... -- 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