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