/usr/bin/dash: Difference between revisions

Line 330: Line 330:


=== Variables and Parameters ===
=== Variables and Parameters ===
    The shell maintains a set of parameters.  A parameter denoted by a name is called a variable.  When
シェルはパラメーターのセットを保持する。 名前で示されるパラメータは変数と呼ばれる。 起動時、シェルはすべての環境変数をシェル変数に変える。 新しい変数は
    starting up, the shell turns all the environment variables into shell variables.  New variables can be
    set using the form


           name=value
           name=value


    Variables set by the user must have a name consisting solely of alphabetics, numerics, and underscores
ユーザーによって設定される変数は、アルファベット、数字、アンダースコアからなる名前でなければならない。 パラメータは、以下に説明するように、数字や特殊文字で表すこともできる。
    - the first of which must not be numeric.  A parameter can also be denoted by a number or a special
    character as explained below.


=== Positional Parameters ===
=== Positional Parameters ===