The same loop as while and as until
The same loop as while and as until
Answer
while [ "guess" != "secret" ] do read guess done until [ "guess" = "secret" ] do read guess done
The keyword and the operator change together. while repeats while the condition succeeds, until repeats while it fails, and the two loops here stop on exactly the same input.
S&K 3e ch12 §12.6.2–12.6.5, §12.7