Force "ls" to show .exe extension

Tom Robinson barefootguru@gmail.com
Tue Jan 6 20:38:00 GMT 2015


If you don't want to specify the extension, can you specify as asterisk?

[3236 CBGSAS04:~/Documents]$ touch name.exe

[3237 CBGSAS04:~/Documents]$ ls -l name
-rw-r--r--+ 1 cbg.tom Domain Users 0 Jan  7 09:34 name

[3238 CBGSAS04:~/Documents]$ ls -l name.exe
-rw-r--r--+ 1 cbg.tom Domain Users 0 Jan  7 09:34 name.exe

[3239 CBGSAS04:~/Documents]$ ls -l name*
-rw-r--r--+ 1 cbg.tom Domain Users 0 Jan  7 09:34 name.exe


> On 2015-01-07, at 08:34, Paul <Paul.Domaskis@gmail.com> wrote:
> 
> Right now, 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.


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



More information about the Cygwin mailing list