bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FS bug in gawk


From: Marek Antozi
Subject: FS bug in gawk
Date: Thu, 17 Apr 2003 19:34:41 +0200 (CEST)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

there is a bug probably when handling FS in GNU awk:

$ awk --version
GNU Awk 3.1.1
Copyright (C) 1989, 1991-2002 Free Software Foundation.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

$ echo A_B_C | awk '{FS="_"; print $1}'
A_B_C

This awk comes from RedHat (but ot does not matter, it "works" this away on
other OSes too).

This should works like, for example, awk in Solaris:

$ echo A_B_C | awk '{FS="_"; print $1}'
A

Regards,

- -Marek Antozi
- --
System Administrator, Forte Tools
SUN Microsystems, Software System Group
Tel.: +420 2 3300-9126
Fax.: +420 2 3300-9299
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQE+nuXJDfUZjsbiBSwRAv0gAJ42BC8Lj1xqpm7wE0/wX7NA9Lzg9wCfWEEo
z6vyYsV8nLOnOf5df20T3rs=
=KeVa
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]