Regular Expression Case Sensitivity

Simper, Brian D plug-discuss@lists.PLUG.phoenix.az.us
Tue, 4 Dec 2001 11:54:44 -0800


Try this in an empty directory and let me know if this is a bug or a feature
or an error on my part.

Create several files of upper and lower case names:

	touch aaaa
	touch AAAA
	touch bbbb
	touch BBBB
	touch 1234
	touch .abcd

Now use a regular expression to delete all files starting with a lower case
letter:

	rm [a-z]*

When I was experimenting with this all of the files starting with *any*
alphabetic character were deleted.  This was unexpected and I'm not sure if
I am misinterpreting the regular expression or if I am delusional.  Let me
know what you get.  FYI, I am using Red Hat Linux 7.2 so I would be
interested if it's just me.

Brian