gsub does not handle \ consistently
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mawk (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mawk
Hello,
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 6.06.1 LTS
Release: 6.06
Codename: dapper
$ dpkg -l mawk
ii mawk 1.3.3-11ubuntu1 a pattern scanning
The interpretation of "\\" in replacement is semi random and does not conform to the man page description.
produces the expected and documented answer
but
only produce one single backslash instead of two. Others awks (gawk, Solaris nawk, MacOSX 10.4.8 awk) do print 2 backslashes.
/Christophe
Is this symptom still reproducible in 8.10 beta? (Note that the syntax seems ill on bash, mksh, ...)