Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11346 > unrolled thread

Re: Bash ignores case when globbing with character ranges

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2015-08-13 13:36 -0400
Last post2015-08-13 13:36 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Bash ignores case when globbing with character ranges Greg Wooledge <wooledg@eeg.ccf.org> - 2015-08-13 13:36 -0400

#11346 — Re: Bash ignores case when globbing with character ranges

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2015-08-13 13:36 -0400
SubjectRe: Bash ignores case when globbing with character ranges
Message-ID<mailman.8271.1439487406.904.bug-bash@gnu.org>
On Thu, Aug 13, 2015 at 10:15:18AM -0400, gwb@callahans.site wrote:
> Description:
> 	bash includes characters of wrong case when globbing with ranges
> 	(i.e., [a-z]), after the first instance.

The result of [a-z] in locales other than C or POSIX is implementation-
defined.  If you want to refer to "any lower case letter" portably,
you need to use [[:lower:]] instead.

However, bash does define a shopt called "globasciiranges" which
changes the behavior of [a-z] from locale-based to traditional US-ASCII.
You might want to try that, if you aren't willing to use the portable
syntax, or to dumb down your LC_* variables.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web