X-Recipient: archive-cygwin@delorie.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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=nMMl8y7pYhlh8RkwOO+xQNY9uwp5Nsi5lnNuAiY8medtJ4gavjxOL
	oSpAHntQyKxixqum8KoDRCteauldDiaVsqzjPE4vl4Ycog6x0pAY/qBzL2lX/Oxw
	ev5cP84YjOVrlCfCxDS2SjCQVSYA5GEqX2PLF2+sPwlRNfjGrhXqwk=
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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=nqWbiOpQv1QE/lwOvbwzjmlsOTs=; b=VVJvtcPgMKaS1W2jkriA8O6havaU
	x5cxjLJWF/cN7jqVrf5vyT7vN70Du68GoEiaW7S6FlLuyJouw9L2q2QhWhqYffJw
	By9v/w1d2QTpRH5fUT3KE+wgZW8cfyD/Zn0BS4D0j1ZUd7jvxtU/ya1GME4P2/7S
	XkNVKe1a9LPsJ+c=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.7 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPAM_URI1,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Paul <Paul.Domaskis@gmail.com>
Subject: Re: Force "ls" to show .exe extension
Date: Wed, 7 Jan 2015 16:07:54 +0000 (UTC)
Lines: 49
Message-ID: <loom.20150107T164855-744@post.gmane.org>
References: <loom.20150106T203355-631@post.gmane.org> <1941710256.20150107013212@yandex.ru> <loom.20150107T010713-891@post.gmane.org> <6CF2FC1279D0844C9357664DC5A08BA20FA979B4@msgb09.nih.gov>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Buchbinder, Barry (NIH/NIAID) [E] <BBuchbinder <at> niaid.nih.gov> writes:
>Paul sent the following at Tuesday, January 06, 2015 7:12 PM
>> I'm wading through many files in two file trees. In particular, I'm
>> looking at corresponding directories in the two trees where "diff
>> -qr" revealed differences. I want the absolute truth of what the
>> filename is with minimal distractions about how to achieve that.
>> Then, I can focus on figuring how those files came about, and how
>> the differences arose.
> 
> Not a Cygwin solution but the following should give real names.
> 
> cmd /c dir /b /a:
> 
> (The /a: makes sure that hidden files are listed.)

That works great, Barry.  The following also works:

   cmd /c dir /b /a: | dos2unix | xargs ls -ltd

However, variation#1

   type -pa pdfcrop | xargs cmd /c dir /b /a:

doesn't work because dir expects DOS filenames (I suspect).

Variation#2

   type -pa pdfcrop | xargs cygpath -aw | xargs cmd /c dir /b /a:

doesn't work because the backward slashes are interpretted by Escapes
by bash.

Variation#3 (on *one* line):

   type -pa pdfcrop | xargs cygpath -aw -t mixed | xargs cmd /c dir /b
   /a:

doesn't work because

   Parameter format not correct - "cygwin64"

To find out what was going on, I stuck an "echo" in front of cmd,
which yielded the following (on *one* line):

   cmd /c dir /b /a: C:/cygwin64/home/User.Name/bin/pdfcrop
   C:/cygwin64/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl
   C:/cygwin64/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl

I think the dir command is interpreting /cygwin64 as a command switch.


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

