Subject: bin/4932: sh list processing broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wormey@eskimo.com>
List: netbsd-bugs
Date: 02/03/1998 21:02:58
>Number: 4932
>Category: bin
>Synopsis: sh doesn't handle lists properly
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 3 21:05:00 1998
>Last-Modified:
>Originator: Steve Allen
>Organization:
I speak only for myself.
>Release: -current Feb 3 1998
>Environment:
System: NetBSD wormey 1.3B NetBSD 1.3B (GENERICTEST) #57: Wed Jan 21 18:30:45 PST 1998 allen@wormey:/usr/src/systest/arch/mac68k/compile/GENERICTEST mac68k
>Description:
sh repeats middle items in a list while processing it
>How-To-Repeat:
Freshly built sh from today's sources:
<73 wormey /bin/sh># obj/sh
# list="a b c d e f"
# for let in $list
> do
> echo $let
> done
a
b
c
d
e
b
c
d
e
f
>Fix:
>Audit-Trail:
>Unformatted: