xref: /illumos-gate/usr/src/test/util-tests/tests/awk/syn/synerr2.awk (revision 45ede40b2394db7967e59f19288fae9b62efd4aa)
1# From: =?ISO-8859-1?Q?J=FCrgen_Kahrs?= <Juergen.KahrsDELETETHIS@vr-web.de>
2# Newsgroups: gnu.utils.bug
3# Subject: Re: gawk-3.1.5: syntax error, core dump
4# Date: Fri, 23 Jun 2006 18:12:07 +0200
5# Lines: 12
6# Approved: bug-gnu-utils@gnu.org
7# Message-ID: <mailman.3258.1151079135.9609.bug-gnu-utils@gnu.org>
8# References: <mailman.3236.1151045898.9609.bug-gnu-utils@gnu.org>
9# Reply-To: Juergen.KahrsDELETETHIS@vr-web.de
10# NNTP-Posting-Host: lists.gnu.org
11# Mime-Version: 1.0
12# Content-Type: text/plain; charset=ISO-8859-1
13# Content-Transfer-Encoding: 7bit
14# X-Trace: news.Stanford.EDU 1151079136 27033 199.232.76.165 (23 Jun 2006 16:12:16 GMT)
15# X-Complaints-To: news@news.stanford.edu
16# To: gnu-utils-bug@moderators.isc.org
17# Envelope-to: bug-gnu-utils@gnu.org
18# X-Orig-X-Trace: individual.net
19# 	vYX9N7nUUtqHxPyspweN0gZ4Blkl17z/xU01EwbykxB178O8M=
20# User-Agent: Thunderbird 1.5 (X11/20060317)
21# In-Reply-To: <mailman.3236.1151045898.9609.bug-gnu-utils@gnu.org>
22# X-BeenThere: bug-gnu-utils@gnu.org
23# X-Mailman-Version: 2.1.5
24# Precedence: list
25# List-Id: Bug reports for the GNU utilities <bug-gnu-utils.gnu.org>
26# List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gnu-utils>,
27# 	<mailto:bug-gnu-utils-request@gnu.org?subject=unsubscribe>
28# List-Archive: <http://lists.gnu.org/pipermail/bug-gnu-utils>
29# List-Post: <mailto:bug-gnu-utils@gnu.org>
30# List-Help: <mailto:bug-gnu-utils-request@gnu.org?subject=help>
31# List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gnu-utils>,
32# 	<mailto:bug-gnu-utils-request@gnu.org?subject=subscribe>
33# Path: news.012.net.il!seanews2.seabone.net!newsfeed.albacom.net!news.mailgate.org!newsfeed.stueberl.de!newsfeed.news2me.com!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!individual.net!not-for-mail
34# Xref: news.012.net.il gnu.utils.bug:813
35#
36# Karel Zak wrote:
37#
38# >  it seems that gawk has problem with "syntax error" reporting:
39# >
40# >  ./gawk '/^include / { system(sprintf("cd /etc; cat %s", [$]2)); skip
41# >  = 1; } { if (!skip) print $0; skipQuit; }' < /etc/ld.so.conf
42#
43# This test case can be boiled down to
44#
45#   gawk 'BEGIN {sprintf("%s", $)}'
46#
47BEGIN { sprintf("%s", $) }
48