From owner-freebsd-hackers Sat Mar 4 12:51:47 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 80ECB37B7B5 for ; Sat, 4 Mar 2000 12:51:44 -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 MAA91595; Sat, 4 Mar 2000 12:50:22 -0800 (PST) (envelope-from Doug@gorean.org) Message-ID: <38C1770E.1DD2EB4E@gorean.org> Date: Sat, 04 Mar 2000 12:50:22 -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: Sheldon Hearn Cc: Max Khon , hackers@FreeBSD.ORG Subject: Re: empty lists in for References: <57223.952177003@axl.ops.uunet.co.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sheldon Hearn wrote: > > On Mon, 21 Feb 2000 22:10:15 +0600, Max Khon wrote: > > > bash and ksh complain about unexpected ';'. > > /bin/sh (FreeBSD) thinks it's ok and does nothing. > > Which behaviour is more POSIXly correct? > > Neither bash nor ksh claim to be particularly POSIX compliant. I can't speak knowledgeably about ksh, but bash has POSIX compliance as one of it's main goals. Check out http://freebsd.simplenet.com/Bash-FAQ.txt and search for the word POSIX. It even has a "posix mode" that makes it more strict than it already is. > our /bin/sh does. We do a pretty good job here of course. People like Martin Cracauer (and a host of others) have worked very hard to keep our /bin/sh in line with the standards. > I seem to remember POSIX being ambiguous on this one, but > my books are at the office. If you haven't gotten a more conclusive > answer by Monday, mail me and I'll look it up. Unfortunately I missed the original. What was the questioner trying to do? 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