1 #From Jeffrey.B.Woodward@Hitchcock.ORG Mon Feb 21 09:33:32 2000
2 #Message-id: <12901034@mailbox2.Hitchcock.ORG>
3 #Date: 20 Feb 2000 18:14:11 EST
4 #From: Jeffrey.B.Woodward@Hitchcock.ORG (Jeffrey B. Woodward)
5 #Subject: gawk 3.0.4 bug
6 #To: bug-gnu-utils@gnu.org
9 #O/S: Digital UNIX 4.0D
18 pattern[1] = "bar" ; ignore[1] = 1
19 pattern[2] = "foo" ; ignore[2] = 0
23 for (i = 1 ; i <= 2 ; i++) {
24 IGNORECASE = ignore[i]
25 print match($0, pattern[i]) " " pattern[i] ":" $0
47 #This problem appears to be directly related to IGNORECASE. If
48 #IGNORECASE remains constant, the program behaves as expected;
49 #however, switching IGNORECASE seems to causes problems - it is
50 #almost as though the pattern stored in the variable is treated
51 #as a constant and the regexp() is not recompiled(?) - just a