*BSD News Article 34567


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!usc!howland.reston.ans.net!ee.und.ac.za!tplinfm
From: barrett@lucy.ee.und.ac.za (Alan Barrett)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: FreeBSD 1.1.5 -- Bug in /usr/bin/leave
Date: 19 Aug 1994 12:23:56 +0200
Organization: Elec. Eng., Univ. Natal, Durban, S. Africa
Lines: 20
Message-ID: <33217s$s7h@lucy.ee.und.ac.za>
References: <NILS.94Aug14230659@guru.stgt.sub.org> <NILS.94Aug16025340@guru.stgt.sub.org> <1994Aug17.172837.4215@cs.brown.edu> <NILS.94Aug18045517@guru.stgt.sub.org>
NNTP-Posting-Host: lucy.ee.und.ac.za

In article <NILS.94Aug18045517@guru.stgt.sub.org>,
nils@ims.uni-stuttgart.de writes:
> Sure, 
> 	  a || b || c && d
> is equivalent to
>           (a || b || c) && d 
> nobody doubts that.

Nonsense.  See ANSI/ISO 9899-1990 section 6.3.13 and section 6.3.14.

The expression

          a || b || c && d

parses as

        logical-OR-expression || logical-AND-expression
           (a || b)           ||       (c && d) 

--apb (Alan Barrett)