delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/06/15:39:10

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:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=DQGwaJAwm5+OR6nhYLEg5Pl1l3ZC
cJkdH4w6moBjdVC75C/6RMHDivZiFK2fk9MSoUopnRvEPPg2+v1Nxt3IUpft+oy6
qrIYr9N8u8qJ69vWXDaDL1QKNEv7I/eO6N7rkxL7fIc9WHbqMTdllhIvVMYZfrEG
moB3sBhDfBBfXcI=
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:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; s=default; bh=9Bg6D7jo4A4jkk2FP0I0sEAaZL4=; b=iz
dYaJPbKD0jCmkTjvCJNYHvG0J4ctqGlsb80sr9YMAO2HoJJqV+aj6mw0oePuWg02
Jx0RSlDAIM0LoeYxCvvbfyxgIP/Wn4K51Pb9qosEdozl8YH9OeNIfxOTEawlACex
TuMx+ehL+wA9vDEbaeY/R9IXTWu0Gws9jBCyNLbac=
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=1.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-pd0-f178.google.com
X-Received: by 10.69.26.130 with SMTP id iy2mr160737875pbd.93.1420576731095; Tue, 06 Jan 2015 12:38:51 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
Subject: Re: Force "ls" to show .exe extension
From: Tom Robinson <barefootguru AT gmail DOT com>
In-Reply-To: <loom.20150106T203355-631@post.gmane.org>
Date: Wed, 7 Jan 2015 09:38:45 +1300
Message-Id: <DF881246-BFF7-45DF-A44D-20F5BAEBA606@gmail.com>
References: <loom DOT 20150106T203355-631 AT post DOT gmane DOT org>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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 DOT Domaskis AT gmail DOT 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

- Raw text -


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