Subject: Re: problem with NetBSD awk
To: None <>
From: None <>
List: tech-userlevel
Date: 04/22/2006 21:00:48
On Sat, Apr 22, 2006 at 09:42:27PM +0300, Aleksey Cheusov wrote:
> > So, regarding NetBSD version of awk (nawk), it is posix compliant one
> > (regarding this) while others seem not.
> Very strange conslusion.
> In above paragraph, there is nothing about [:cntrl:]
> characters. While passing to -v all they should remain unchanged.
> IMO -v option should work this way. Otherwise passing -v to
> awk will be rounded with lots of annoying tr.

Well, do we agree with :

1) the printf(1) assigns expanded newlines to nls :

$ printf 'a\nb\n'

2) so awk(1) receives an assignment to nls with newlines (not escaped
sequences) in it;

3) this is a string constant assigned to a variable ;

3) the quote from susv3 says that :
	[..]A <newline> shall not occur within a string constant.[...]

What have I missed ?

Thierry Laronde (Alceste) <tlaronde +AT+ polynum +dot+ com>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C