Path: utzoo!attcan!sobmips!roe From: roe@sobmips.UUCP (r.peterson) Newsgroups: comp.unix.questions Subject: Re: How do I ask "if NOT" in shell? Message-ID: <1989Oct26.041244.28325@sobmips.UUCP> Date: 26 Oct 89 04:12:44 GMT References: <63720010@hpl-opus.HP.COM> Organization: Sobeco Group - Montreal, Canada Lines: 23 From article <63720010@hpl-opus.HP.COM>, by steinbac@hpl-opus.HP.COM (Gunter Steinbach): > I prefer This form: > > TESTCOMMAND || { > BODY > } > > It doesn't allow an "else" clause, though. I tried this: true && { echo true } || { echo false } and it functions fine. Change true && to false && and it prints false correctly as well. -- If the brain were so simple we understood it|Roe Peterson We would be so simple we couldn't. |{attcan,mcgill-vision}!sobeco!roe