/usr/bin/bash: Difference between revisions

Line 119: Line 119:


== RESERVED WORDS ==
== RESERVED WORDS ==
      Reserved  words are words that have a special meaning to the shell.  The following words are rec‐
予約語はシェルにとって特別な意味を持つ語である。 以下の単語は、引用符で囲まれておらず、コマンドの最初の単語(以下の [[#SHELL GRAMMAR|SHELL GRAMMAR]] を参照)、case または select コマンドの 3 番目の単語(in のみ有効)、for コマンドの 3 番目の単語(in と do のみ有効)のいずれかに指定されている場合に予約語として認識される:
      ognized as reserved when unquoted and either the first word of a command (see SHELL GRAMMAR be‐
      low),  the  third word of a case or select command (only in is valid), or the third word of a for
      command (only in and do are valid):


      ! case coproc do done elif else esac fi for function if in select then until while { } time [[
<code>! case coproc do done elif else esac fi for function if in select then until while { } time [[ ]]</code>
      ]]


== SHELL GRAMMAR ==
== SHELL GRAMMAR ==