1# Date: Wed, 08 Dec 2004 12:59:42 +0600
2# From: Alexander Sashnov <asashnov@sw-soft.com>
3# Subject: addon to gawk test suite
4# Sender: asashnov@sashnov.plesk.ru
5# To: "Arnold D. Robbins" <arnold@skeeve.com>
6# Message-id: <lzy8g9xokh.fsf@sashnov.plesk.ru>
7#
8#
9# Hello, Arnold.
10#
11# I'm hit bug on SuSE 9.1 with awk:
12#
13# vsuse91:~ # echo "a:b:c" | awk '{ print $2 }' 'FS=[ :]'
14# b
15# vsuse91:~ # echo "a:b:c" | awk '{ print $2 }' 'FS=[ :]+'
16# awk: cmd. line:2: fatal: Trailing backslash: /[ :]+/
17#
18# vsuse91:~ # awk --version
19# GNU Awk 3.1.3
20#
21#
22#
23# But on my Debian machine all OK:
24#
25# asashnov@sashnov:~$ echo "a:b:c" | awk '{ print $2 }' 'FS=[ :]'
26# b
27# asashnov@sashnov:~$ echo "a:b:c" | awk '{ print $2 }' 'FS=[ :]+'
28# b
29# asashnov@sashnov:~$ awk --version
30# GNU Awk 3.1.4
31#
32#
33# Need add test for this sample to gawk test suite for avoid this problems in future.
34# --
35# Alexander Sashnov
36# Plesk QA Engineer
37# SWsoft, Inc.
38# E-mail: asashnov@sw-soft.com
39# ICQ UIN: 79404252
40
41BEGIN {
42    # Added for illumos tests
43    FS = "[ :]+"
44}
45
46{ print $2 }
47