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   [email protected]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to