NetBSD Problem Report #32902

From abc@en27.ai1.anchorage.mtaonline.net  Wed Feb 22 14:27:55 2006
Return-Path: <abc@en27.ai1.anchorage.mtaonline.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.netbsd.org (Postfix) with ESMTP id E30CE63B871
	for <gnats-bugs@gnats.netbsd.org>; Wed, 22 Feb 2006 14:27:55 +0000 (UTC)
Message-Id: <200602221428.k1MESvKs011154@en27.ai1.anchorage.mtaonline.net>
Date: Wed, 22 Feb 2006 14:28:57 GMT
From: i18rabbit@cwazy.co.uk
Reply-To: i18rabbit@cwazy.co.uk
To: gnats-bugs@NetBSD.org
Subject: awk with null FS
X-Send-Pr-Version: 3.95

>Number:         32902
>Category:       bin
>Synopsis:       awk with null FS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 22 14:30:00 +0000 2006
>Originator:     i18rabbit@cwazy.co.uk
>Release:        NetBSD 3.0
>Organization:
>Environment:
System: NetBSD NetBSD 3.0 (MYKERN) #2: Fri Feb 17 13:12:07 AKST 2006 /usr/src/sys/arch/i386/compile/MYKERN i386
Architecture: i386
Machine: i386
>Description:
	when FS is null, awk (nawk) does not split on character boundries
    as mawk and gawk do - and this is an important/critical feature in awk
    regardless of whether POSIX specifies it or not - and it shouldn't
    be too difficult to make nawk do this.  good awk scripts break on
    nawk for no good reason because of this - it wouldn't hurt anything
    to make nawk compatable with mawk and gawk in this regard, and the
    coding shouldn't be too difficult with someone familiar with it.
>How-To-Repeat:

	$ echo hello | awk -F "" '{ while ( ++i <= NF ) print $i }'

	this should produce:

    h
    e
    l
    l
    o

    but with nawk, it produces an error saying FS is null.

>Fix:
	NetBSD nawk code needs to be changed.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.