File: ofmta.awk

package info (click to toggle)
goawk 1.29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 10,560 kB
  • sloc: awk: 3,060; yacc: 198; fortran: 189; python: 131; sh: 58; makefile: 12
file content (30 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Date: Thu, 14 Apr 2011 08:18:55 -0500
# From: j.eh@mchsi.com
# To: arnold@skeeve.com
# Subject: CONVFMT test for the test suite
# Message-ID: <20110414131855.GA1801@apollo>
# 
# Hi,
# 
# Please consider adding this to the test suite. 3.1.8 segfaults
# with this.
# 
# Thanks,
# 
# John
# 
# 
BEGIN {
	i=1.2345
	i=3+i
	a[i]="hi"
	OFMT="%.1f"
	print i                       
	for (x in a) print x, a[x]
	print a[i]
	print "--------"
	CONVFMT=OFMT="%.3f"
	print i                       
	for (x in a) print x, a[x]
	print a[i]
}