Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/patch-create-without-consctl/notes

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Sun May 22 00:48:37 EDT 2005 rsc
    I did what you meant to do.
    Note that 
    
    fn true { status='' }
    fn false { status=xxx }
    
    if(true; false) echo false
    if(false; true) echo true
    if(true && false) echo both
    if(false && true) echo both again
    
    are four different tests.  if you use a semicolon
    you just end up testing the last thing.  you wanted an &&.
    


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.