delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/10/18:17:49

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:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=bB2dMpMWITbs83Ve
2MvdZegnJlCpGtuoCYQgmRaZAKoZEB4fVq6ztNGPPqj9B3ENJpq1Soz0Ycn4G9PY
Gvm5Bh/7yXLFYXAQmPsyHrVOOVZKfYrJflW7FUILBA9LT1hHuWRJjncqhk2prAlr
+PlZaQgC9aqPmDqgg0jwPV3EKyQ=
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:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=BuNhyPh21z+4ra3C90awcO
m3CHA=; b=N3TS62CeycLJWANronXeOo19GUC7d0npuvKXTmf3evwoO0f8/lYKwc
dBcRg5FhNDGpLUmXZaDc4QEoxyxN2Y3+x4zNcjY/FZ9G2FQkaCX975fDjmCiVsMG
Kjpvv3gkDUufQyQ034T8aNPUkf+D2/LfvgBjQZEejOMDOCdm+VSmk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*R:D*edu
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: cygpath
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>
To: cygwin AT cygwin DOT com
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <e84da808-cba0-589d-d1ec-58f64d8eb351@cs.umass.edu>
Date: Fri, 10 Feb 2017 18:17:07 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B139AF9@MX204CL04.corp.emc.com>
X-IsSubscribed: yes

On 2/10/2017 3:03 PM, Gluszczak, Glenn wrote:
> * is a legal character for ls but perhaps not cygpath?  I don't know.
> No files or directories are using * in the name.
>
> Not sure about incorrect terminal settings as I never touched any.
> It shows up in mintty and ssh equally. The characters that appear vary.
>
> Some non-existent paths do *not* produce the gibberish.
>
> %%%cygpath -w /aaa/bbb/*
> C:\cygwin\aaa\bbb\

Yes, but I found something interesting when I did this:

echo "$(cygpath -w /usr/non-existent/*)" > mytemp

od -c mytemp

revealed that there is a three-byte sequence after the
output of

C:\cygwin\usr\non-existent\

and before the newline added by echo.  I guess it's
some representation of * that does not show up on the
terminal, but it did strike me as a little strange ...

Regards - EM

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019