dash: echo builtin interprets backslash escape sequences
Bug #259671 reported by
Edward Crichton
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Debian) |
Won't Fix
|
Unknown
|
|||
dash (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In dash, backslashes are parsed within single quotes, contradicting POSIX and it's own man page.
POSIX: http://
The following should print 2 backslashes:
echo '\\'
description: | updated |
Changed in bash: | |
status: | New → Invalid |
Changed in dash (Ubuntu): | |
status: | New → Confirmed |
description: | updated |
Changed in dash (Debian): | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in dash (Debian): | |
status: | Unknown → Won't Fix |
To post a comment you must log in.
Thank you for taking the time to report.
When I run your test script with bash (under karmic), I get the backslash as it should be. However when I run it with dash (the default /bin/sh since edgy, 6.10) the backslash does not get displayed.
Please run 'ls -l /bin/sh' so that we can decide if this is really a bash bug (dpkg -L containing /bin/sh does not mean that your /bin/sh is actually bash) or a dash bug.