[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OFS bug
From: |
Nuno Sucena Almeida |
Subject: |
OFS bug |
Date: |
Sat, 9 Mar 2002 20:00:25 +0000 (WET) |
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
--
http://www.co.it.pt/~slug/
Instituto de Telecomunicações
- OFS bug, Nuno Miguel Fernandes Sucena Almeida, 2002/03/08
- OFS bug,
Nuno Sucena Almeida <=
- Re: OFS bug, Aharon Robbins, 2002/03/10