|
|
Line 190: |
Line 190: |
|
| |
|
| === Command Exit Status === | | === Command Exit Status === |
| Each command has an exit status that can influence the behaviour of other shell commands. The paradigm is that a command exits with zero for normal or success, and non-zero for failure, error, or a false indication. The man page for each command should indicate the various exit codes and what they mean. Additionally, the builtin commands return exit codes, as does an executed shell function.
| | 各コマンドには、他のシェルコマンドの動作に影響を与えることができる終了ステータスがある。 パラダイムは、コマンドが正常または成功した場合はゼロで終了し、失敗、エラー、または誤った指示の場合はゼロ以外で終了することである。 各コマンドのマニュアルページには、さまざまな終了コードとその意味が記載されているはずである。 さらに、組み込みのコマンドは、実行されたシェル関数と同様に、終了コードを返す。 |
|
| |
|
| If a command consists entirely of variable assignments then the exit status of the command is that of the last command substitution if any, otherwise 0.
| | コマンドが完全に変数代入で構成されている場合、コマンドの終了ステータスは、もしあれば最後のコマンド代入のものであり、そうでなければ0である。 |
|
| |
|
| === Complex Commands === | | === Complex Commands === |