|
|
Line 312: |
Line 312: |
|
| |
|
| === Positional Parameters === | | === Positional Parameters === |
| A positional parameter is a parameter denoted by one or more digits, other than the single digit
| | 位置パラメーターは、1桁の0以外の1桁以上の数字で示されるパラメーターである。 位置パラメーターは、シェルが起動されたときに、シェルの引数から代入される。 位置パラメーターは、代入文では代入できない。 位置パラメーターは、シェル関数が実行されるときに一時的に置き換えられる(後述の [[#FUNCTIONS|FUNCTIONS ]]を参照)。 |
| 0. Positional parameters are assigned from the shell's arguments when it is invoked, and may be
| |
| reassigned using the set builtin command. Positional parameters may not be assigned to with as‐
| |
| signment statements. The positional parameters are temporarily replaced when a shell function is
| |
| executed (see FUNCTIONS below).
| |
|
| |
|
| When a positional parameter consisting of more than a single digit is expanded, it must be en‐
| | 1桁以上で構成される位置パラメーターを展開する場合は、中括弧で囲む必要がある(後述の[[#EXPANSION|EXPANSION ]]を参照)。 |
| closed in braces (see EXPANSION below).
| |
|
| |
|
| === Special Parameters === | | === Special Parameters === |