From owner-freebsd-questions Mon Feb 7 13:47:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by builder.freebsd.org (Postfix) with ESMTP id 020593F8A for ; Mon, 7 Feb 2000 13:47:35 -0800 (PST) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12HtgI-0007Ul-00; Mon, 07 Feb 2000 19:18:42 +0000 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #1) id 12HtgI-0000tn-00; Mon, 07 Feb 2000 19:18:42 +0000 Date: Mon, 7 Feb 2000 19:18:42 +0000 From: Ben Smithurst To: Dan Larsson Cc: "[FreeBSD-Questions-List] (E-postl)" Subject: Re: shell script if query Message-ID: <20000207191842.F860@strontium.scientia.demon.co.uk> References: <01BF719A.C8E227B0.dl@tyfon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <01BF719A.C8E227B0.dl@tyfon.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Larsson wrote: > Is it possible to specify some kind of OR statement in if queries when > using sh? if foo || bar; then ... fi or, if you are using "[", if [ -f wobble -o -x wibble ]; then ... fi -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message