/usr/bin/bash: Difference between revisions

Line 779: Line 779:


=== Process Substitution ===
=== Process Substitution ===
      Process  substitution  allows a process's input or output to be referred to using a filename.  It
プロセス置換は、プロセスの入出力をファイル名で参照できるようにする。 <nowiki><(list)または>(list)</nowiki>の形をとる。 プロセスリストは非同期に実行され、その入出力はファイル名として表示される。 このファイル名は、展開の結果として現在のコマンドの引数として渡される。 (list)形式が使われた場合、ファイルへの書き込みが listへの入力となる。 <nowiki><(list)</nowiki>形式が使われた場合、引数として渡されたファイルは listの出力を得るために読み込まれなければならない。 プロセス置換は、名前付きパイプ(FIFO)または /dev/fd によるオープンファイルの名前付けをサポートしているシステムでサポートされる。
      takes the form of <(list) or >(list).  The process list is run asynchronously, and its  input  or
      output  appears  as a filename.  This filename is passed as an argument to the current command as
      the result of the expansion.  If the >(list) form is used, writing to the file will provide input
      for list.  If the <(list) form is used, the file passed as an argument should be read to obtain
      the output of list.  Process substitution is supported on systems that support named  pipes  (FI‐
      FOs) or the /dev/fd method of naming open files.


      When  available, process substitution is performed simultaneously with parameter and variable ex‐
利用可能な場合、プロセス置換はパラメータや変数の展開、コマンドの置換、算術展開と同時に実行される。
      pansion, command substitution, and arithmetic expansion.


=== Word Splitting ===
=== Word Splitting ===