emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#11228: closed (Bug in ls?)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11228: closed (Bug in ls?)
Date: Thu, 12 Apr 2012 03:16:03 +0000

Your message dated Wed, 11 Apr 2012 20:49:41 -0600
with message-id <address@hidden>
and subject line Re: bug#11228: Bug in ls?
has caused the debbugs.gnu.org bug report #11228,
regarding Bug in ls?
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11228: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11228
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Bug in ls? Date: Wed, 11 Apr 2012 21:13:19 -0300
Hi!
I noticed that
ls -a *old
won't match .xsession.old.
I don't know if it a bug or a feature. ;)
To list it I must type ls -a | grep .old
or ls .*old

Thank for your time.

Regards,
dfm



--- End Message ---
--- Begin Message --- Subject: Re: bug#11228: Bug in ls? Date: Wed, 11 Apr 2012 20:49:41 -0600 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1
tag 11228 notabug
thanks

On 04/11/2012 06:13 PM, dfm wrote:
> Hi!
> I noticed that
> ls -a *old
> won't match .xsession.old.
> I don't know if it a bug or a feature. ;)

Feature.  In fact, ls isn't even involved - glob expansion is done by
the shell before ls even gets to see argv.

> To list it I must type ls -a | grep .old
> or ls .*old

Indeed - POSIX requires that file names beginning with '.' do not match
a glob starting with '*'; if you want to list such files, you have to
explicitly match the leading dot.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]