[Top][All Lists]

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

Re: ${parameter#[:upper:]} does not work with LANG=en_US

From: Andreas Schwab
Subject: Re: ${parameter#[:upper:]} does not work with LANG=en_US
Date: Tue, 02 Apr 2002 14:13:25 +0200
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux)

address@hidden (Jim Avera) writes:

|> Description:
|>         The POSIX.2 character class [:upper:] does not work in the
|>         ${param#[...]} syntax.  The [:upper:] pattern does not match 
|>         an an initial upper-case letter.

You've got the syntax wrong.  [:upper:] is a pattern that matches any of
the characters ":epru", whereas [[:upper:]] is a pattern that matches all
upper case letters.


Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]