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). Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/