zsh-workers
 help / color / mirror / code / Atom feed
* Case-insensitive globbing?
@ 2000-12-13 14:51 Hrvoje Niksic
  2000-12-13 15:26 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Hrvoje Niksic @ 2000-12-13 14:51 UTC (permalink / raw)
  To: zsh-workers

Under Solaris, when you choose any locale that is not "C", even some
as innocent-looking as "en_US", globbing works with locale-specific
data.  While this looks like a nice idea at a glance, it leads to very
strange behavior:

$ touch foo bar qux IMPORTANT
$ ls [a-z]*
bar   foo   qux
$ LC_ALL=en_US zsh
$ ls [a-z]*
bar         foo         IMPORTANT   qux

I don't know about you, but I would expect `rm [a-z]*' to leave the
file IMPORTANT in place.  With zsh under Solaris and en_US locale, it
would get deleted.

Could you please make the ranges in [...] range through ASCII, as the
users would expect?  The users who want case-insensitiveness as
enforced by the locale can always use [[:alpha:]] and whatnot.

Please Cc responses to me, as I am not subscribed to this list.
Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-13 15:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-13 14:51 Case-insensitive globbing? Hrvoje Niksic
2000-12-13 15:26 ` Bart Schaefer
2000-12-13 15:32   ` Hrvoje Niksic

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).