How to write a condition in Bourne shell

Olivier Nicole on at cs.ait.ac.th
Sun Nov 4 23:03:47 PST 2007


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


More information about the freebsd-questions mailing list