1*e6d6c189SCody Peter Mello# From jhart@avcnet.bates.edu  Sun Oct  6 16:05:21 2002
2*e6d6c189SCody Peter Mello# Return-Path: <jhart@avcnet.bates.edu>
3*e6d6c189SCody Peter Mello# Received: from localhost (skeeve [127.0.0.1])
4*e6d6c189SCody Peter Mello# 	by skeeve.com (8.11.6/8.11.6) with ESMTP id g96D5Jf28053
5*e6d6c189SCody Peter Mello# 	for <arnold@localhost>; Sun, 6 Oct 2002 16:05:21 +0300
6*e6d6c189SCody Peter Mello# Received: from actcom.co.il [192.114.47.1]
7*e6d6c189SCody Peter Mello# 	by localhost with POP3 (fetchmail-5.9.0)
8*e6d6c189SCody Peter Mello# 	for arnold@localhost (single-drop); Sun, 06 Oct 2002 16:05:21 +0300 (IDT)
9*e6d6c189SCody Peter Mello# Received: by actcom.co.il (mbox arobbins)
10*e6d6c189SCody Peter Mello#  (with Cubic Circle's cucipop (v1.31 1998/05/13) Sun Oct  6 16:06:39 2002)
11*e6d6c189SCody Peter Mello# X-From_: jhart@avcnet.bates.edu Sun Oct  6 15:31:59 2002
12*e6d6c189SCody Peter Mello# Received: from lmail.actcom.co.il by actcom.co.il  with ESMTP
13*e6d6c189SCody Peter Mello# 	(8.11.6/actcom-0.2) id g96CVrS27315 for <arobbins@actcom.co.il>;
14*e6d6c189SCody Peter Mello# 	Sun, 6 Oct 2002 15:31:54 +0300 (EET DST)
15*e6d6c189SCody Peter Mello# 	(rfc931-sender: mail.actcom.co.il [192.114.47.13])
16*e6d6c189SCody Peter Mello# Received: from f7.net (consort.superb.net [209.61.216.22])
17*e6d6c189SCody Peter Mello# 	by lmail.actcom.co.il (8.11.6/8.11.6) with ESMTP id g96CVqY01629
18*e6d6c189SCody Peter Mello# 	for <arobbins@actcom.co.il>; Sun, 6 Oct 2002 15:31:52 +0300
19*e6d6c189SCody Peter Mello# Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164])
20*e6d6c189SCody Peter Mello# 	by f7.net (8.11.6/8.11.6) with ESMTP id g96CVp418974
21*e6d6c189SCody Peter Mello# 	for <arnold@skeeve.com>; Sun, 6 Oct 2002 08:31:51 -0400
22*e6d6c189SCody Peter Mello# Received: from monty-python.gnu.org ([199.232.76.173])
23*e6d6c189SCody Peter Mello# 	by fencepost.gnu.org with esmtp (Exim 4.10)
24*e6d6c189SCody Peter Mello# 	id 17yAZa-00055o-00
25*e6d6c189SCody Peter Mello# 	for bug-gawk@gnu.org; Sun, 06 Oct 2002 08:31:50 -0400
26*e6d6c189SCody Peter Mello# Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
27*e6d6c189SCody Peter Mello# 	id 17yAZE-0007eB-00
28*e6d6c189SCody Peter Mello# 	for bug-gawk@gnu.org; Sun, 06 Oct 2002 08:31:29 -0400
29*e6d6c189SCody Peter Mello# Received: from avcnet.bates.edu ([134.181.128.62])
30*e6d6c189SCody Peter Mello# 	by monty-python.gnu.org with esmtp (Exim 4.10)
31*e6d6c189SCody Peter Mello# 	id 17yAZ9-0007X3-00
32*e6d6c189SCody Peter Mello# 	for bug-gawk@gnu.org; Sun, 06 Oct 2002 08:31:23 -0400
33*e6d6c189SCody Peter Mello# Received: from a5514a.bates.edu (www.bates.edu [134.181.128.62])
34*e6d6c189SCody Peter Mello# 	by avcnet.bates.edu (8.9.3/8.9.3) with ESMTP id IAA05400
35*e6d6c189SCody Peter Mello# 	for <bug-gawk@gnu.org>; Sun, 6 Oct 2002 08:31:20 -0400
36*e6d6c189SCody Peter Mello# Date: Sun, 6 Oct 2002 08:36:54 -0400
37*e6d6c189SCody Peter Mello# Mime-Version: 1.0 (Apple Message framework v482)
38*e6d6c189SCody Peter Mello# Content-Type: text/plain; charset=US-ASCII; format=flowed
39*e6d6c189SCody Peter Mello# Subject: Infinite loop in sub/gsub
40*e6d6c189SCody Peter Mello# From: jhart@avcnet.bates.edu
41*e6d6c189SCody Peter Mello# To: bug-gawk@gnu.org
42*e6d6c189SCody Peter Mello# Content-Transfer-Encoding: 7bit
43*e6d6c189SCody Peter Mello# Message-Id: <4BC4A4F0-D928-11D6-8E78-00039384A9CC@mail.avcnet.org>
44*e6d6c189SCody Peter Mello# X-Mailer: Apple Mail (2.482)
45*e6d6c189SCody Peter Mello# X-Spam-Status: No, hits=0.3 required=5.0
46*e6d6c189SCody Peter Mello# 	tests=NO_REAL_NAME,SPAM_PHRASE_00_01,USER_AGENT_APPLEMAIL
47*e6d6c189SCody Peter Mello# 	version=2.41
48*e6d6c189SCody Peter Mello# X-Spam-Level:
49*e6d6c189SCody Peter Mello# X-SpamBouncer: 1.4 (10/07/01)
50*e6d6c189SCody Peter Mello# X-SBClass: OK
51*e6d6c189SCody Peter Mello# Status: RO
52*e6d6c189SCody Peter Mello#
53*e6d6c189SCody Peter Mello# This command line:
54*e6d6c189SCody Peter Mello#
55*e6d6c189SCody Peter Mello# echo "''Italics with an apostrophe'' embedded''"|gawk -f test.awk
56*e6d6c189SCody Peter Mello#
57*e6d6c189SCody Peter Mello# where test.awk contains this instruction:
58*e6d6c189SCody Peter Mello#
59*e6d6c189SCody Peter Mello/''/  { sub(/''(.?[^']+)*''/, "<em>&</em>"); }
60*e6d6c189SCody Peter Mello#
61*e6d6c189SCody Peter Mello# puts gawk 3.11 into an infinite loop. Whereas, this command works:
62*e6d6c189SCody Peter Mello#
63*e6d6c189SCody Peter Mello# echo "''Italics with an apostrophe' embedded''"|gawk -f test.awk
64*e6d6c189SCody Peter Mello#
65*e6d6c189SCody Peter Mello#
66*e6d6c189SCody Peter Mello#
67*e6d6c189SCody Peter Mello# Platform: Mac OS X 10.1.5/Darwin Kernel Version 5.5: Thu May 30 14:51:26
68*e6d6c189SCody Peter Mello# PDT 2002; root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC
69*e6d6c189SCody Peter Mello#
70*e6d6c189SCody Peter Mello#
71