Subject: awk behaviour different (output of print +variable,-variable)
To: None <current-users@NetBSD.ORG>
From: Carsten Hammer <chammer@phyd2hammer.uni-bielefeld.de>
List: current-users
Date: 05/13/1996 15:18:25
Hi,
is it correct that awk behaviour differs on different machines?
I need a table of numbers to written and found out that awk
doesnt give a uninitialized variable out what is a little bit
disturbing for some programs like gnuplot. The fix is easy,
just always initialize all variables that have to be print out later, but
i want to know what the reason is for this incompatibility between
awk-NetBSD and awk-OSF (or gawk-OSF). OSF prints the
variable in "print -variablename[index]" but not in 
"print +variablename[index]" (of course a -0), NetBSD prints 
it in both cases.
ciao 
Carsten