summaryrefslogtreecommitdiff
path: root/test/fsspcoln.awk
blob: 8087c2e5b9c1718dcf40027ddf2b955824abb42a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 }