🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #88

precedence of -a over -o in bash-0.99 test

#88
From: Andy Fyfe
Date: Tue, 13 Jun 1989 23:31
9 lines
667 bytes
    bash$ if [ x -o y -a "" ]; then echo yes; else echo no; fi
    no
    bash$ enable -n [
    bash$ if [ x -o y -a "" ]; then echo yes; else echo no; fi
    yes

test(1) is advertised as giving precedence to -a over -o.  Bash should
do the same.
Technical Details
Message-ID: <8906132331.AA09653@csvax.caltech.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!tut.cis.ohio-state.edu!CSVAX.CALTECH.EDU!andy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!tut.cis.ohio-state.edu!CSVAX.CALTECH.EDU!andy
From: andy@CSVAX.CALTECH.EDU (Andy Fyfe)
Newsgroups: gnu.bash.bug
Subject: precedence of -a over -o in bash-0.99 test
Message-ID: <8906132331.AA09653@csvax.caltech.edu>
Date: 13 Jun 89 23:31:31 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 9