File: ignrcas2.awk

package info (click to toggle)
gawk 1%3A3.1.5.dfsg-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,144 kB
  • ctags: 3,545
  • sloc: ansic: 31,602; awk: 4,970; sh: 4,409; yacc: 2,634; makefile: 1,358; sed: 16
file content (13 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Based on test program submitted by:
# Date: Sun, 7 Sep 2003 23:11:51 +0200
# From: Michael Mauch <michael.mauch@gmx.de>
# To: bug-gawk@gnu.org
# Subject: Internal error in gawk-3.1.3 with character class

BEGIN {
	IGNORECASE = 1
	if ("a" ~ /[[:alnum:]]/)
		print "OK"
	else
		print "NOT OK"
}