From owner-freebsd-hackers Sun Mar 5 20:37:18 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 9A98237BBE7 for ; Sun, 5 Mar 2000 20:37:15 -0800 (PST) (envelope-from Doug@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id UAA06638; Sun, 5 Mar 2000 20:37:09 -0800 (PST) (envelope-from Doug@gorean.org) Message-ID: <38C335F4.8A9C2499@gorean.org> Date: Sun, 05 Mar 2000 20:37:08 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 4.0-CURRENT-0302 i386) X-Accept-Language: en MIME-Version: 1.0 To: John Polstra Cc: hackers@freebsd.org Subject: Re: empty lists in for References: <57223.952177003@axl.ops.uunet.co.za> <20000305093539F.jhix@mindspring.com> <38C2B805.EA899C32@gorean.org> <200003060430.UAA85900@vashon.polstra.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra wrote: > > In article <38C2B805.EA899C32@gorean.org>, > Doug Barton wrote: > > > > Given that Bash in both standard and POSIX mode complains about 'for i > > in ; do echo $i; done', I would say that it's not POSIX compatible. What > > could/does depend on this behavior "working?" > > It works for the realistic cases that might actually be useful. E.g.,: > > x= > for i in $x; do > echo $i > done > > works fine. I don't think it matters very much that the pathological > case "for i in ; ..." doesn't work. Agreed on all counts. By "this behavior" I was referring to the example. Doug -- "Welcome to the desert of the real." - Laurence Fishburne as Morpheus, "The Matrix" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message