[Top][All Lists]

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

Re: [bash-testers] Re: case modification operators misbehaviour?

From: Chet Ramey
Subject: Re: [bash-testers] Re: case modification operators misbehaviour?
Date: Sun, 18 Jan 2009 18:42:41 -0500
User-agent: Thunderbird (Macintosh/20081209)

Jan Schampera wrote:
> Chet Ramey wrote:
>>> The case modification operators (for parameter expansion) seem to be
>>> puzzled.
>>> Two things I don't understand:
>>> - it seems to work word-wise (might be due to my misinterpretion of the
>>> default pattern)
>> It does work word-by-word, like the emacs-mode editing commands.  I
>> would like feedback on whether or not that works better than the
>> alternative.
> Intuitively I expected it to operate on the whole content, not word by
> word. On the other hand, I have no big clue about emacs and the Bash
> emacs-mode, so other people might expect it to work like that.

You've convinced me.  The release version of bash-4.0 will implement
this by working on the entire word (or variable value, in the case of
the -u and -l options to declare), rather than splitting into words
(sequences of alphanumerics).


``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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