Tutorial by Examples

while true; do echo ok done or while :; do echo ok done or until false; do echo ok done
function positive() { return 0 } function negative() { return 1 }
if true; then echo Always executed fi if false; then echo Never executed fi

Page 1 of 1