zsh-workers
 help / color / mirror / code / Atom feed
From: Hrvoje Niksic <hniksic@arsdigita.com>
To: zsh-workers@sunsite.auc.dk
Subject: Case-insensitive globbing?
Date: 13 Dec 2000 15:51:16 +0100	[thread overview]
Message-ID: <sxsr93cv0gr.fsf@florida.arsdigita.de> (raw)

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.


             reply	other threads:[~2000-12-13 14:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-13 14:51 Hrvoje Niksic [this message]
2000-12-13 15:26 ` Bart Schaefer
2000-12-13 15:32   ` Hrvoje Niksic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sxsr93cv0gr.fsf@florida.arsdigita.de \
    --to=hniksic@arsdigita.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).