case conversion in sed substitution does not work

Daniel Robitaille robitaille at gmail.com
Thu Nov 4 04:42:49 UTC 2004


> case 1:
> 
> echo dennis decker jensen | sed -re 's/[a-z]+/\U&/'
> DENNIS decker jensen
> 
> case 2:
> 
> echo dennis decker jensen | sed -re 's/[a-z]+/\u&/'
> ennis decker jensen
> 
> I expected this in case 2:
> Dennis decker jensen
> 
> It eats the character! The same thing happens when using \l (\L).

for what is it worth, it does the same on my machine.



> -- System Information:
> Debian Release: testing/unstable
> Architecture: i386 (i686)
> Kernel: Linux 2.6.8.1-3-386
> Locale: LANG=en_DK, LC_CTYPE=en_DK
> 
> Versions of packages sed depends on:
> ii  libc6              2.3.2.ds1-13ubuntu2.2 GNU C Library: Shared libraries an
> 
> -- no debconf information


After seeing this type of bug report, and since I'm relatively new at
debian/ubuntu, I'm now curious:  what is the tool that creates these
nice and complete bug reports?




More information about the ubuntu-users mailing list