Post History
The shell uses ; to reliably end a statement. In some cases, a line break also ends a statement (except that when the statement is obviously incomplete, a line break does not end it). (I don't kn...
Answer
#3: Post edited
The shell uses `;` to reliably end a statement. In some cases, a line break also ends a statement (except that when the statement is obviously incomplete, a line break does not end it). I don't know if statement is the technical term.- I personally always use `;` as if I were writing C code, unless running some one-liner interactively. IMO, the semicolons add readability.
- The shell uses `;` to reliably end a statement. In some cases, a line break also ends a statement (except that when the statement is obviously incomplete, a line break does not end it). (I don't know if "statement" is the technical term.)
- I personally always use `;` as if I were writing C code, unless running some one-liner interactively. IMO, the semicolons add readability.
#2: Post edited
bash(1) uses `;` to reliably end a statement. In some cases, a line break also ends a statement (except that when the statement is obviously incomplete, a line break does not end it). I don't know if statement is the technical term.- I personally always use `;` as if I were writing C code, unless running some one-liner interactively. IMO, the semicolons add readability.
- The shell uses `;` to reliably end a statement. In some cases, a line break also ends a statement (except that when the statement is obviously incomplete, a line break does not end it). I don't know if statement is the technical term.
- I personally always use `;` as if I were writing C code, unless running some one-liner interactively. IMO, the semicolons add readability.
#1: Initial revision
bash(1) uses `;` to reliably end a statement. In some cases, a line break also ends a statement (except that when the statement is obviously incomplete, a line break does not end it). I don't know if statement is the technical term. I personally always use `;` as if I were writing C code, unless running some one-liner interactively. IMO, the semicolons add readability.