This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Force "ls" to show .exe extension
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Paul <Paul dot Domaskis at gmail dot com>, cygwin at cygwin dot com
- Date: Wed, 7 Jan 2015 04:32:27 +0300
- Subject: Re: Force "ls" to show .exe extension
- Authentication-results: sourceware.org; auth=none
- References: <loom dot 20150106T203355-631 at post dot gmane dot org> <1941710256 dot 20150107013212 at yandex dot ru> <loom dot 20150107T010713-891 at post dot gmane dot org>
- Reply-to: cygwin at cygwin dot com
Greetings, Paul!
>>> ...if I have ~/bin/pdfcrop.exe, the command "ls ~/bin/pdfcrop"
>>> shows pdfcrop rather than pdfcrop.exe. Is there any way to force
>>> ls to show the full filename (including extension) if it matched
>>> the ls argument, even if the ls argument doesn't specify the
>>> extension? I read
>>> http://cygwin.com/cygwin-ug-net/using-specialnames.html, which
>>> helps explain the situation, but not a solution.
>>
>> I see people are diving deep to find a "solution", but noone has
>> asked, what is the problem they are trying to solve here. So, let
>> me ask it: what is the problem?
> Hello, Andrey,
> 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 distrations about how to achieve that. Then, I can
> focus on figuring how those files came about, and how the differences
> arose.
Use more appropriate tools.
I.e. Far manager have standard file/directory comparison plugin.
Which can quickly compare paths and or contents of the files.
However, it will not show differences inside files, only show that they are
different, but you can always augment it with
view:<? diff -x "CVS" -x ".svn" -I "\$Id.*\$" -I "\$Revision.*\$" -I "\$Date.*\$" -I "\$Author.*\$" -I "\$URL.*\$" !?$UnixDiff$Options ((-c, -b etc.)):?! --strip-trailing-cr -- "!#!\!.!" "!^!\!.!"
P.S.
I'm not saying that this can not be achieved with Cygwin tools, but even then,
using "ls" to compare files one by one is hardly efficient.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 07.01.2015, <04:24>
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