dash gets backslash escaping wrong
Bug #1462002 reported by
mjh
This bug report is a duplicate of:
Bug #259671: dash: echo builtin interprets backslash escape sequences.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Expected behaviour: -- echo should print one \ for every escaped backslash ("\\")
$ echo "\\\\"
\\\\
Observed behaviour :
$ echo "\\" # one escaped-bs
\
$ echo "\\\\" # two escaped
\
$ echo "\\\\\\" # three escaped
\\
$ echo "\\\\\\\\" # 4 escaped
\\
To post a comment you must log in.
Never mind, I see this has has already received the ubiquitous WONTFIX.
https:/ /bugs.launchpad .net/ubuntu/ +source/ dash/+bug/ 259671