help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Case modification


From: Chet Ramey
Subject: Re: [Help-bash] Case modification
Date: Sat, 24 Dec 2011 15:48:42 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 12/23/11 7:02 PM, Bill Gradwohl wrote:

> Therefore, pattern (can not be / should not be) more than 1 character,
> unless its within [ ] then each character gets its turn. Reading the man
> page does not give me that impression. It hints at it, but is nebulous
> enough to allow other interpretations.

Let's see how we can make the documentation clearer.  I think it takes only
these two additional sentences in the description:

"Each character in the expanded value of @var{parameter} is tested against
@var{pattern}, and, if it matches the pattern, its case is converted.
The pattern should not attempt to match more than one character."

And, for what it's worth, the number of characters in a [...] pattern does
not matter: a bracket expression can only ever match a single character.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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