|
|
1.1 ! root 1: ! 2: ! 3: while Command while ! 4: ! 5: ! 6: ! 7: ! 8: Execute commands repeatedly ! 9: ! 10: wwhhiillee _s_e_q_u_e_n_c_e_1 ! 11: [ddoo _s_e_q_u_e_n_c_e_2] ! 12: done ! 13: ! 14: The shell construct while controls a loop. It first executes the ! 15: commands in sequence1. If the exit status is zero, the shell ex- ! 16: ecutes the commands in the optional sequence2 and repeats the ! 17: process until the exit status of sequence1 is nonzero. Because ! 18: the shell recognizes a reserved word only as the unquoted first ! 19: word of a command, both do and done must occur unquoted at the ! 20: start of a line or preceded by `;'. ! 21: ! 22: The shell commands break and continue may be used to alter con- ! 23: trol flow within a while loop. The until construct has the same ! 24: form as while, but the sense of the test is reversed. ! 25: ! 26: The shell executes while directly. ! 27: ! 28: ***** See Also ***** ! 29: ! 30: break, commands, continue, sh, test, until ! 31: ! 32: ! 33: ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.