NetBSD Problem Report #32902

From  Wed Feb 22 14:27:55 2006
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id E30CE63B871
	for <>; Wed, 22 Feb 2006 14:27:55 +0000 (UTC)
Message-Id: <>
Date: Wed, 22 Feb 2006 14:28:57 GMT
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
>Release:        NetBSD 3.0
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
	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.

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

	this should produce:


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

	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:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.