aboutsummaryrefslogtreecommitdiffstats
path: root/test/fsspcoln.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 14:47:02 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 14:47:02 +0300
commit315bd501ca696bc3e3c938b4604d8dac7a6f512f (patch)
treecf992f0df002126292f7487ca6c0d36d7fe748b9 /test/fsspcoln.awk
parent85c0d5edb781c9f31b79e48452b1ca68643f41de (diff)
downloadegawk-315bd501ca696bc3e3c938b4604d8dac7a6f512f.tar.gz
egawk-315bd501ca696bc3e3c938b4604d8dac7a6f512f.tar.bz2
egawk-315bd501ca696bc3e3c938b4604d8dac7a6f512f.zip
Move to gawk 3.1.5.
Diffstat (limited to 'test/fsspcoln.awk')
-rw-r--r--test/fsspcoln.awk41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/fsspcoln.awk b/test/fsspcoln.awk
new file mode 100644
index 00000000..8087c2e5
--- /dev/null
+++ b/test/fsspcoln.awk
@@ -0,0 +1,41 @@
+# Date: Wed, 08 Dec 2004 12:59:42 +0600
+# From: Alexander Sashnov <asashnov@sw-soft.com>
+# Subject: addon to gawk test suite
+# Sender: asashnov@sashnov.plesk.ru
+# To: "Arnold D. Robbins" <arnold@skeeve.com>
+# Message-id: <lzy8g9xokh.fsf@sashnov.plesk.ru>
+#
+#
+# Hello, Arnold.
+#
+# I'm hit bug on SuSE 9.1 with awk:
+#
+# vsuse91:~ # echo "a:b:c" | awk '{ print $2 }' 'FS=[ :]'
+# b
+# vsuse91:~ # echo "a:b:c" | awk '{ print $2 }' 'FS=[ :]+'
+# awk: cmd. line:2: fatal: Trailing backslash: /[ :]+/
+#
+# vsuse91:~ # awk --version
+# GNU Awk 3.1.3
+#
+#
+#
+# But on my Debian machine all OK:
+#
+# asashnov@sashnov:~$ echo "a:b:c" | awk '{ print $2 }' 'FS=[ :]'
+# b
+# asashnov@sashnov:~$ echo "a:b:c" | awk '{ print $2 }' 'FS=[ :]+'
+# b
+# asashnov@sashnov:~$ awk --version
+# GNU Awk 3.1.4
+#
+#
+# Need add test for this sample to gawk test suite for avoid this problems in future.
+# --
+# Alexander Sashnov
+# Plesk QA Engineer
+# SWsoft, Inc.
+# E-mail: asashnov@sw-soft.com
+# ICQ UIN: 79404252
+
+{ print $2 }