From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 1 Dec 2007 20:09:53 +0100 From: Martin Neubauer To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] rc: token buffer too short Message-ID: <20071201190953.GA788@shodan.homeunix.net> References: <33F4A474-6B5E-4A40-8361-A131770B900F@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33F4A474-6B5E-4A40-8361-A131770B900F@mac.com> User-Agent: Mutt/1.4.2.3i Topicbox-Message-UUID: 10329c9a-ead3-11e9-9d60-3106f5b1d025 Apparrently in quoted strings each character (rune, actually) constitutes one token. The lexical scanner only holds NTOK (==8192) tokens at a time and sam and wc convince me you have a 8555 byte string you pass to awk. You should probably put the awk stuff into a separate file eg.awk and just do `awk -f eg.awk $*' in eg (cf. chem(1) ). You might have to fiddle with where you put things, but that seems to be the easiest way out. Martin * Pietro Gagliardi (pietro10@mac.com) wrote: > Run /n/sources/contrib/pietro/eg (a work-in-progress troff > preprocessor for graphs of equations). You get the error described > above on a line that contains simply "else". What happened?