🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Srihari Kotcherlakota Mon, 13 Apr 1992 01:02
Passing variables to gawk doesn't work?
#135
Author: Srihari Kotcherlakota
Date: Mon, 13 Apr 1992 01:02
26 lines
976 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads