File: ofmta.awk

package info (click to toggle)
gawk 1%3A4.0.1%2Bdfsg-2.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 10,944 kB
  • sloc: ansic: 38,137; awk: 6,654; yacc: 6,066; sh: 4,807; makefile: 1,802; sed: 112
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]
}