xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/concat1.awk (revision 2aeafac3612e19716bf8164f89c3c9196342979c)
1#From deep@cicada-semi.com  Wed Jan 23 13:15:52 2002
2#X-From_: deep@cicada-semi.com Wed Jan 23 01:24:54 2002
3#From: "Mandeep Chadha" <deep@cicada-semi.com>
4#To: <bug-gawk@gnu.org>
5#Subject: gawk version 3.1.0 will not print a ";"
6#Date: Tue, 22 Jan 2002 17:23:57 -0600
7#Message-ID: <NCBBLGONGLINHCDGFCPNOENHCOAA.deep@cicada-semi.com>
8#MIME-Version: 1.0
9#Content-Type: text/plain;
10#	charset="iso-8859-1"
11#Content-Transfer-Encoding: 7bit
12#X-Priority: 3 (Normal)
13#X-MSMail-Priority: Normal
14#X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
15#Importance: Normal
16#X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
17#
18#
19#The file "tmp" contains the following lines:
20#
21#A
22#B
23#C
24#D
25#
26#and when I run the command:
27#
28#	gawk '{print "Input = "$_" ; "}' tmp
29{print "Input = "$0" ; "}
30#
31#I get the following output:
32#
33#Input = A
34#Input = B
35#Input = C
36#Input = D
37#
38#while I expect the following output:
39#
40#Input = A ;
41#Input = B ;
42#Input = C ;
43#Input = D ;
44#
45#Running gawk --version produces the following output:
46#
47#GNU Awk 3.1.0
48#Copyright (C) 1989, 1991-2001 Free Software Foundation.
49#
50#This program is free software; you can redistribute it and/or modify
51#it under the terms of the GNU General Public License as published by
52#the Free Software Foundation; either version 2 of the License, or
53#(at your option) any later version.
54#
55#This program is distributed in the hope that it will be useful,
56#but WITHOUT ANY WARRANTY; without even the implied warranty of
57#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
58#GNU General Public License for more details.
59#
60#You should have received a copy of the GNU General Public License
61#along with this program; if not, write to the Free Software
62#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
63#
64#I am running this on a i686 machine that is running RedHat 7.2 (out of the box).
65#
66#Thanks,
67#
68#Mandeep Chadha
69#
70#----------------------------------------
71#Mandeep Chadha
72#Cicada Semiconductor Corp.
73#811 Barton Springs Road, Suite 550
74#Austin, TX 78704
75#Ph:      (512) 327-3500 x111
76#E-mail:  deep@cicada-semi.com
77#URL:     http://www.cicada-semi.com
78#----------------------------------------
79