Re: [ptxdist] [PATCH] ptxd_install_replace_figlet: Use sed instead of awk to quote backslashes
Hi Uwe, On Wed, Sep 19, 2018 at 10:43:36AM +0200, Uwe Kleine-König wrote: > TL;DR: awk and backslashes in the replacement argument of gsub is ugly. > > With GNU Awk 4.0.2 we have: > > $ echo '\' | awk '{ gsub("", ""); print }' > > > and with GNU Awk
[ptxdist] [PATCH] ptxd_install_replace_figlet: Use sed instead of awk to quote backslashes
TL;DR: awk and backslashes in the replacement argument of gsub is ugly. With GNU Awk 4.0.2 we have: $ echo '\' | awk '{ gsub("", ""); print }' and with GNU Awk 4.1.4 (and newer) we have: $ echo '\' | awk '{ gsub("", "");