bug-coreutils
[Top][All Lists]
Advanced

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

Re: Is this a bug?


From: Eric Blake
Subject: Re: Is this a bug?
Date: Thu, 05 Nov 2009 07:32:19 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to ????? ??????/Nachshon Yeshurun on 11/5/2009 6:46 AM:
> Hello sir
> 
> Running the following command on Ubuntu 9.10 produced the following result:
> address@hidden:~$ ls *[0-9]
> Abcd4  m97  parfile1  Parfile2
> 
> dir1:
> file1  file3  pfile2  Pfile4  pxtmp  usera1
> address@hidden:~$ 
> 
> I think the file pxtmp located in dir1 should not have appeared in the answer 
> since it does not end with a numeric character.

Not a bug.  dir1 ends in a 1, so you got the results of 'ls dir1', which
lists the contents of that directory without regards to whether the
contents match the original glob you typed on the command line.  Globbing
is done before ls starts; to see what you really did, try:

$ ls *[0-9]

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkry4fIACgkQ84KuGfSFAYD77gCg1R45uJJiTWBmYEZMUTRC/4uI
AokAoMoMyBDyDEqDjabiUhuVMnPCRS7X
=o0pV
-----END PGP SIGNATURE-----




reply via email to

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