Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Mar 2000 11:39:49 -0800
From:      Doug Barton <Doug@gorean.org>
To:        W Gerald Hicks <jhix@mindspring.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: empty lists in for
Message-ID:  <38C2B805.EA899C32@gorean.org>
References:  <Pine.BSF.4.21.0002212205230.36736-100000@iclub.nsu.ru> <57223.952177003@axl.ops.uunet.co.za> <20000305093539F.jhix@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
W Gerald Hicks 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.  our
> > /bin/sh does.  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.
> 
> I much prefer the current behavior and believe there may be many things
> which depend on it.

	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?"

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38C2B805.EA899C32>