Date: Mon, 5 Nov 2007 21:15:36 +0000 From: Tino Engel <elrap@web.de> To: freebsd-questions@freebsd.org Cc: Olivier Nicole <on@cs.ait.ac.th> Subject: Re: How to write a condition in Bourne shell Message-ID: <200711052115.44012.elrap@web.de> In-Reply-To: <200711050703.lA573V3q013117@banyan.cs.ait.ac.th> References: <200711050703.lA573V3q013117@banyan.cs.ait.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711052115.44012.elrap>