/usr/bin/bash: Difference between revisions

Line 125: Line 125:
== SHELL GRAMMAR ==
== SHELL GRAMMAR ==
===Simple Commands===
===Simple Commands===
      A simple command is a sequence of optional variable assignments followed by blank-separated words
単純なコマンドは、空白で区切られた単語とリダイレクションが続き、制御演算子で終了する、オプションの変数代入のシーケンスである。 最初の単語は実行するコマンドを指定し、引数ゼロとして渡される。 残りの単語は、呼び出されたコマンドの引数として渡される。
      and redirections, and terminated by a control operator.  The first word specifies the command  to
      be  executed, and is passed as argument zero.  The remaining words are passed as arguments to the
      invoked command.


      The return value of a simple command is its exit status, or 128+n if the command is terminated by
単純なコマンドの戻り値は、そのコマンドの終了ステータスであり、コマンドがシグナルnで終了する場合は128+nである。
      signal n.


===Pipelines ===
===Pipelines ===