Maybe OT : strange wildcard behaviour

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



Hi,

I'm currently working through some basic HOWTOS (Linux Fundamentals 1-4
by Gentoo founder Daniel Robbins) on a CentOS 5.5 server, just to keep
in shape.

I've just noticed a curious wildcard behaviour, which I can't really
explain. Let's say I wanted to list all the files or directories in /tmp
starting with any uppercase character. Normally, I would do this :

$ ls -d /tmp/[A-Z]* 

Curiously enough, this command lists *all* the content of /tmp,
consisting of a majority of files and directories starting with a
*lowercase* character. I've tested this on two different machines, with
the same results. I'm puzzled.

Can anybody offer an explanation for this curious behaviour ?

Cheers,

Niki

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux