echo does not handle escapes any more
Bug #116226 reported by
Martin Pitt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Binary package hint: bash
Current gutsy's bash does not handle escapes correctly:
$ echo -ne '\101'
\101
It should evaluate the escape instead of printing it in verbatim. That's what the standalone echo and printf are doing:
$ /bin/echo -ne '\101'
A
$ printf '\101'
A
bash's echo behaves correctly in Etch and Edgy, too (bash 3.1). I didn't test Feisty.
Changed in bash: | |
importance: | Undecided → Medium |
To post a comment you must log in.
echo '\0101' works, but it should IMHO still keep the old behaviour too to not break compatibility with existing scripts.