I've read man bash on this and did some experimentation. I'm confused about how to interpret what "pattern" means. Does it take each character in pattern as a discrete item or does pattern get looked at as a whole.
address@hidden ~# x="hello there"; echo ${x^he}
hello there Why aren't the first 2 characters upper cased?
address@hidden ~# x="hello there"; echo ${x^^he} hello there Why isn't every occurrence of 'he' upper cased?
address@hidden ~# x="hello there"; echo ${x^[he]}
Hello there
address@hidden ~# x="hello there"; echo ${x^^[he]} HEllo tHErE This would seem to indicate that 'h' is a pattern and 'e' is a pattern and that 'he' is not a pattern.
The reason I'm interested in this is to see if it's possible to write a statement to capitalize the first letter of every word - produce 'Hello There'.