[Top][All Lists]

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

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

From: Chris F.A. Johnson
Subject: Re: [bash-testers] Re: case modification operators misbehaviour?
Date: Thu, 15 Jan 2009 06:14:40 +0000
User-agent: slrn/ (Linux)

On 2009-01-15, Jan Schampera wrote:
> I have another one, maybe my misinterpretion or an unclean documentation:
> $ TEXT="Test"
> $ echo ${TEXT^s}
> Test
> I expected "TeSt", since the pattern is "s", and the 3rd letter in
> "Test" matches that, and should be changed. Interesting that it works
> with ^^s (for "Tesst" then), but for all "s", of course.

man bash4:

     ... the ^ and , expansions match and convert only the first

   Chris F.A. Johnson, webmaster         <http://Woodbine-Gerrard.com>
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

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