tech-userlevel archive

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

Re: bin/39002: harmful AWK extension: non-portable escaped character

On Thu, Jul 10, 2008 at 01:24:39AM +0300, Aleksey Cheusov wrote:
 > Yet another touches to the picture.
 > I've found the following because I use proposed patch on my own system.
 > [...]
 > Please fix this buggy awk code in postinstall script which is run by
 > EVERY NetBSD user for many years.


Although the following gives me some doubts about your awk patch:

 >   awk: warning: escape sequence \`.' treated as plain `.'
 >    source line number 33
 >    context is
 >                           checklib(minor, $0, >>>  "^lib.*\. <<< so\.")
 >   awk: non-terminated string ^lib.*.      el... at source line 35
 >   awk: syntax error at source line 36
 >   awk: illegal statement at source line 36 shouldn't choke that hard.

(Also, you probably meant to have it print `\.', not \`.'.)

David A. Holland

Home | Main Index | Thread Index | Old Index