/usr/bin/bash: Difference between revisions

Line 918: Line 918:


=== Appending Standard Output and Standard Error ===
=== Appending Standard Output and Standard Error ===
      This construct allows both the standard output (file descriptor 1) and the standard error  output
この構成では、標準出力(ファイル記述子1)と標準エラー出力(ファイル記述子2)の両方を、wordの展開名を持つファイルに追加することができる。
      (file descriptor 2) to be appended to the file whose name is the expansion of word.


      The format for appending standard output and standard error is:
標準出力と標準エラーを付加する書式は以下の通りである:


              &>>word
<code>&>>word</code>


      This is semantically equivalent to
これは意味的に以下と等価である


              >>word 2>&1
<code>>>word 2>&1</code>


      (see Duplicating File Descriptors below).
(後述の [[#Duplicating File Descriptors|Duplicating File Descriptors ]]参照)


=== Here Documents ===
=== Here Documents ===