bug-bash
[Top][All Lists]
Advanced

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

Enhancement: bash should have uniform escape syntaxes for `echo -e`, `pr


From: Arthur200000
Subject: Enhancement: bash should have uniform escape syntaxes for `echo -e`, `printf` and `$'ANSI_C_style_escape'`.
Date: Tue, 11 Aug 2015 02:30:54 +0800 (CST)

Configuration Information:
Machine Type: i686-pc-cygwin, i686-pc-msys, x86_86-linux-gnu, 
x86_64-Apple-Darwin

Bash Version: 4.3
Patch Level: 30
Release Status: release

Description:
        Bash has different escape syntaxes for `echo -e`, `printf` and 
`$'ANSI_C_style_escape'`. Take a specific point, `printf` and `$'C_Style'` 
accepts octals not starting with 0, but `echo -e` doesn't. 
        This is causing quite a lot of confusion.
        
        On older versions of bash, like bash 3.2 on OS X, `echo` doesn't 
understand `\e` but `printf` and `$'C_style'` does. I believe this is quite a 
aged problem.

Repeat-By:
        printf 'printf starts the bold\33[1m\n'; echo $'C escape should end 
it\33[0m'; echo -e 'echo -e does nothing but giving crap\33[1;31m'

reply via email to

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