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

2009-01-15 Thread Pierre Gaston
On Thu, Jan 15, 2009 at 8:14 AM, Chris F.A. Johnson wrote: > 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

Re: truncating the path in the bash prompt?

2009-01-15 Thread Matthew Woehlke
Paul Jarc wrote: Matthew Woehlke wrote: Actually, a feature that would be REALLY helpful is a way to specify certain directory strings that should be abbreviated. PS1='...$(mypath)...' mypath() { case $PWD/ in /usr/local/src/kde/svn/trunk/*) printf %s "${PWD/#\/usr\/local\/src\/kd