X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=g2vw4KL LSsP82bwHGV8kBbhnDFDiVsFcliI5ZUup5prHTwZgJmUMCEhct+vstdKcxNP2MzZ xybvj6WqnbAhpZ8evLWbAKH9MeDKffKNKRdMtnkucwb+7r3zomrBOruq8qe31/y8 MSPmy2cZrFW6MA4A7Ppc/C9C1nOmFK7ggYfc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=ilsfGB+5T3Kg8 pNiunp8U1kX7b8=; b=ygvS3yLWiH/1fXw0QAqEiG8NHrKX0J91R+SQ7sqY93LAc EuR6fPLGUfzUDAiWTvgHMb19xWG9t0sKhfsCVh+VG5XHi/qaN9iOGYybzeFk4CrM Yv2tObYguyuniHxcN35sTT/LGRsYy6UHFKur9IG61BZUvtbSyn+uddEaxJDDJc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=expands, Andre, andre X-HELO: mail-oi0-f42.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=dk0rIeO0HqZ0svB8nX0ulXQeMgXlHWJBxd4UDJSPmOA=; b=i5rriJ95Fz3NRR5oo2M5B/mgZIEVXyfwRaEblUuFwu1Og/gUar08Nbv0M8SUwX5q2G 3rqtlOXHThkNDi6/TO+apaZ2opdc1fzIK/rKmAhS0v/dkQ8Xd0YFIgclnAeynk8epZ96 OYzvrrWvNXtjUvGO687q+XNPUvpr6fLG3nWTj2b8CqTxBvoNXa1AHboPSCf3wANWv3pJ cxOPC2e0dy4EjoBalLsrSqX8LslFYbwxfpRyNh1jWiwag3lqQe8v+z3cCe1PJolDK2Ch Ceb53I00x9N+aVVW1YMEHpisg/zNyR3M6y2OH7C/dAZkC/opcn7q7yOi9oWnx8HESJkv Ccfg== X-Gm-Message-State: AMke39lgESwEKdzqM0T1+BJ/Qg58GFrjywOCGUoEGYpAWRfshCWna8Ic1ojNyOQX13GSpiLGo61U1rTmurqMyQ== X-Received: by 10.202.69.130 with SMTP id s124mr5932489oia.17.1486763676521; Fri, 10 Feb 2017 13:54:36 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B139C41@MX204CL04.corp.emc.com> References: <91DCAC3CB99C724EB365BB64677FBE7B139A86 AT MX204CL04 DOT corp DOT emc DOT com> <151946397 DOT 20170210223617 AT yandex DOT ru> <91DCAC3CB99C724EB365BB64677FBE7B139AF9 AT MX204CL04 DOT corp DOT emc DOT com> <126350824 DOT 20170211003439 AT yandex DOT ru> <91DCAC3CB99C724EB365BB64677FBE7B139C41 AT MX204CL04 DOT corp DOT emc DOT com> From: Michael Enright Date: Fri, 10 Feb 2017 13:54:36 -0800 Message-ID: Subject: Re: cygpath To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Fri, Feb 10, 2017 at 1:46 PM, Gluszczak, Glenn wrote: > I suppose the glob explanation from Michael explains this behavior in sh. > Though unsupported, it seems to work (probably some side cases do not). It seems to me that the behavior is supported and working. Bash or sh takes an unescaped argument /usr/bin/* and expands it to a list of names, which it provides as an array of arguments to the called program, cygpath in this case. Then cygpath converts each and outputs each result. If the user escapes the argument in someway, the asterisk survives and is treated as a Unix file name character. If there is no glob expansion, in the case of the unescaped argument /usr/nonexistent/* for example, Bash only passes one argument, and the asterisk in that is treated as a filename character. I think when the output to your terminal is weird, it is because of locale settings or code pages that either hide or garble the output of the unicode character. When the output is piped to od as Andre does, the output is clearly the UTF8 byte sequence for U+F02A. -- 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