🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4148

Passing variables in gawk.

#4148
From: Srihari Kotcherlakota
Date: Tue, 21 Apr 1992 05:41
26 lines
1300 bytes
Script gawk.bug:

#!/bin/csh
nawk \
'\
END { print "var1 = ", var1 }' \
/dev/null var1="nawk works"
awk \
'\
END { print "var1 = ", var1 }' \
/dev/null var1="awk works"
gawk \
'\
END { print "var1 = ", var1 }' \
/dev/null var1="gawk works"

What happens when I run the above test:

gawk.bug
var1 =  nawk works
var1 =  awk works  # I had to hit Ctrl-D to force this message
gawk: var1=gawk works: No such file or directory

Question: Is this a known bug in gawk?

Please reply to hari@fai.fmiapd.com
Technical Details
Message-ID: <1992Apr21.054153.22451@leland.Stanford.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!usenet.coe.montana.edu!mintaka.lcs.mit.edu!ai-lab!ai.mit.edu!gnulists

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f1ff,2703d365f41465f2,start
X-Google-Attributes: gid10f1ff,public
X-Google-Thread: 1012a6,2703d365f41465f2,start
X-Google-Attributes: gid1012a6,public
X-Google-ArrivalTime: 1992-04-20 22:41:53 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!usenet.coe.montana.edu!mintaka.lcs.mit.edu!ai-lab!ai.mit.edu!gnulists
From: harik@leland.stanford.edu (Srihari Kotcherlakota)
Newsgroups: comp.unix.shell,gnu.utils.bug
Subject: Passing variables in gawk.
Message-ID: <1992Apr21.054153.22451@leland.Stanford.EDU>
Date: 21 Apr 92 05:41:53 GMT
Followup-To: comp.unix.shell,gnu.utils.bug
Organization: DSG, Stanford University, CA 94305, USA
Lines: 26
Approved: info-gnu@prep.ai.mit.edu
Apparently-To: gnu-utils-bug@uunet.uu.net