Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2007 14:03:31 +0700 (ICT)
From:      Olivier Nicole <on@cs.ait.ac.th>
To:        freebsd-questions@freebsd.org
Subject:   How to write a condition in Bourne shell
Message-ID:  <200711050703.lA573V3q013117@banyan.cs.ait.ac.th>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711050703.lA573V3q013117>