From owner-freebsd-questions@FreeBSD.ORG Mon Nov 5 20:15:43 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BB6816A418 for ; Mon, 5 Nov 2007 20:15:43 +0000 (UTC) (envelope-from elrap@web.de) Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by mx1.freebsd.org (Postfix) with ESMTP id E605813C4A7 for ; Mon, 5 Nov 2007 20:15:42 +0000 (UTC) (envelope-from elrap@web.de) Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 3F3E3ADC481E; Mon, 5 Nov 2007 21:15:25 +0100 (CET) Received: from [84.152.172.215] (helo=noname) by smtp08.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #208) id 1Ip8M0-0005nM-00; Mon, 05 Nov 2007 21:15:25 +0100 From: Tino Engel Organization: Galileo Group AG To: freebsd-questions@freebsd.org Date: Mon, 5 Nov 2007 21:15:36 +0000 User-Agent: KMail/1.9.4 References: <200711050703.lA573V3q013117@banyan.cs.ait.ac.th> In-Reply-To: <200711050703.lA573V3q013117@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1293371.dWiIP0mgc4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200711052115.44012.elrap@web.de> Sender: elrap@web.de X-Sender: elrap@web.de X-Provags-ID: V01U2FsdGVkX186U/OTYFG0n6ZrclJxQBgbD9FuROiyiC0yi3jO Y4d2Vnmdhv5rf8xP0vqUhn+58s8inrvOlz2S6uKNgLYSMNUtBU DPoRnus+g= Cc: Olivier Nicole Subject: Re: How to write a condition in Bourne shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 20:15:43 -0000 --nextPart1293371.dWiIP0mgc4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline while [ $? -ne 0 -a $retry -gt 0 ] do ... done should do the work=20 Am Montag 05 November 2007 07:03 schrieb Olivier Nicole: > Hi, > > I am a lame Bourne sheel programmer, how to write: > > while [ ( $? -ne 0 ) -a ( $retry -gt 0 ) ] ; do > > that should execute as long as $? is not null and $retry is greater > than 0? > > TIA, > > Olivier > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" --nextPart1293371.dWiIP0mgc4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBHL4f/4xizT/jJ1lERAiM0AKC2wyA0LfFVf+nfcRhqS6ZInNVL6ACgvvew wdl9+qezn41toC0e7eAPKgA= =KLqW -----END PGP SIGNATURE----- --nextPart1293371.dWiIP0mgc4--