Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!bsiao!tvdl From: tvdl@bsiao.UUCP (Timo van der Laan) Newsgroups: comp.bugs.4bsd,comp.unix.wizards Subject: awk bug, fix wanted (bsd42 maybe others too) Message-ID: <309@bsiao.UUCP> Date: Wed, 18-Mar-87 05:56:13 EST Article-I.D.: bsiao.309 Posted: Wed Mar 18 05:56:13 1987 Date-Received: Sat, 21-Mar-87 06:09:25 EST Reply-To: tvdl@bsiao.UUCP (Timo van der Laan) Distribution: world Organization: POSTBANK N.V., Amsterdam Lines: 22 Xref: mnetor comp.bugs.4bsd:238 comp.unix.wizards:1533 Problem The following call to awk (to be used in a shell script) gives the error message 'funny variable' when called with a parameter >49. awk -F~ '{printf "%s %s\n", $'$1', $82;print $'$1', $82 }' Input Repeat-by Create a file Input with 82 fields separated by ~ (on 1 line). Save the awk-call in a file Call. sh -x Call nn will give the error message if nn>49. Question Does somebody has a fix for this problem? I looked at the sources of awk and I found only 1 constant that was 50. Increasing this constant to 100 and recompiling awk didn't work. We have a VAX-750 with 4.2bsd running. ---------------------------------------------------------------------------- Timo van der Laan, Postbank N.V., room 4.97 ...mcvax!bsiao!tvdl Pb 21009 1000 EX AMSTERDAM Phone: + 31 20 5843175