bug-gnu-utils
[Top][All Lists]
Advanced

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

possible gawk bug


From: Helge Skrivervik
Subject: possible gawk bug
Date: Tue, 17 Dec 2002 09:24:16 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826


the sub/gsub fundtion does not seem to be able to make the substitution of '&' to '\&', and I have come to the conclusion that this is most likely a bug. From the docs I would expect the correct syntax to be sub(/&/,"\\\&"), but while '\\' and '\&' alone work as substitutions, the combination does not. the gawk version is 3.1.1.(redhat 8)

rgds,
helge




reply via email to

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