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

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

OFS bug


From: Nuno Miguel Fernandes Sucena Almeida
Subject: OFS bug
Date: Sat, 9 Mar 2002 03:13:37 +0000 (WET)

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

Hello,

        i think i found a bug:

echo "a,b,c,d" | gawk 'BEGIN {FS=","} { OFS = ":"; $2 = ""; print
$0; print NF }'
a::c:d
4

this is ok but the next:

$echo "a,b,c,d" | gawk 'BEGIN {FS=","} { OFS = ":"; print $0; print NF }'
a,b,c,d
4

Shouldn't it be a:b:c:d ??



gawk --version
GNU Awk 3.1.0
Copyright (C) 1989, 1991-2001 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.



                        Sincerily,
                                        Nuno Sucena
- --


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Para mais informações veja http://www.gnupg.org

iD8DBQE8iX3o8HEhaPSUrLkRArgCAKDIVDzgkxvSYW9U/nRJLtW/1+RatACfcnYG
BAhQ8vBuML/8l3HIpQnEsbg=
=mpwU
-----END PGP SIGNATURE-----




reply via email to

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