Hi Chet, hi bug-bash readers,

I'm not quite getting the changes in bash's handling of escape
sequences.


[EMAIL PROTECTED](~)> echo '\a'
'\a

Ouch?  This is not related to escape sequence handling:

[EMAIL PROTECTED](~)> echo -E '\a'
'\a
[EMAIL PROTECTED](~)> echo -e '\a'
'

And yet, it is:

[EMAIL PROTECTED](~)> echo '\\ \ \ \ '
\\ \ \ \ 
[EMAIL PROTECTED](~)> echo '\\ \a \ \ '
 \ \ '\\ \a \ \ 
[EMAIL PROTECTED](~)> echo 'wow\awow'
wow'wow\awow

[EMAIL PROTECTED](~)> echo $'\a'
'
[EMAIL PROTECTED](~)> echo \\a
\a

Finally!

[EMAIL PROTECTED](~)> echo $BASH_VERSION 
3.2.5(1)-release
[EMAIL PROTECTED](~)> gcc --version
gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)


Sorry if I'm being terribly ignorant here, but I don't get it.

On a related note, the documented escape sequences handled by "echo"
differ between help echo and man echo  (-e vs. -E).

-- 
Best Regards,  | Hi! I'm a .signature virus. Copy me into
 Sebastian     | your ~/.signature to help me spread!

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to