From owner-freebsd-current Sat Oct 2 4:45:52 1999 Delivered-To: freebsd-current@freebsd.org Received: from tardis.patho.gen.nz (tardis.patho.gen.nz [203.97.2.226]) by hub.freebsd.org (Postfix) with ESMTP id 21AF8151D5; Sat, 2 Oct 1999 04:44:52 -0700 (PDT) (envelope-from jabley@tardis.patho.gen.nz) Received: (from jabley@localhost) by tardis.patho.gen.nz (8.9.3/8.9.3) id XAA32211; Sat, 2 Oct 1999 23:44:35 +1200 (NZST) Date: Sat, 2 Oct 1999 23:44:35 +1200 From: Joe Abley To: Mark Murray Cc: dcs@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: FICL breakage... Message-ID: <19991002234434.A13467@patho.gen.nz> References: <199909291002.MAA52950@gratis.grondar.za> <19990929230549.F10020@patho.gen.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <19990929230549.F10020@patho.gen.nz>; from Joe Abley on Wed, Sep 29, 1999 at 11:05:49PM +1200 X-Files: the Truth is Out There Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Sep 29, 1999 at 11:05:49PM +1200, Joe Abley wrote: > On Wed, Sep 29, 1999 at 12:02:09PM +0200, Mark Murray wrote: > > There is breakage in the new FICL. This fixes it... > > > > [awk diff] > > I remember a long time ago someone asked me to make some modifications > to softcore.awk to compress the textual ficl keywords by eliminating > double-spaces and newlines, and that kind of thing. Modifications have been made; patch in kern/14087. It produces identical output to the new softcore.pl for my test case of cat sys/boot/ficl/softwords/*.fr People (more) familiar with ficl syntax might like to craft some awkward constructs and check that I'm handling them legally. Note that the script contains one gawk-ism (use of strftime() to include a cosmetic "last update" comment in the generated softcore.c). In my opinion, this should be eliminated -- it seems like a needless GNUism to me. gawk(1) says that the use of the character class [[:space:]] is consistent with POSIX 1003.2 (and I have no reason to disbelieve it). However, [[:space:]] also seems to be frequently misunderstood by other common awks, so it might also be considered a candidate for removal in the interests of portability. The alternative is a bit messier, though, and not necessarily portable across different locales. Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message