/usr/bin/bash: Difference between revisions

Line 251: Line 251:


== COMMENTS ==
== COMMENTS ==
      In  a  non-interactive shell, or an interactive shell in which the interactive_comments option to
非対話型シェル、または shopt 組み込みコマンドの interactive_comments オプションが有効になっている対話型シェル(後述の「シェル組み込みコマンド」を参照)では、# で始まる単語は、その単語とその行の残りのすべての文字を無視する。 interactive_comments オプションを有効にしていない対話型シェルでは、コメントは許可されない。 対話型シェルでは、interactive_commentsオプションはデフォルトでオンになっている。
      the shopt builtin is enabled (see SHELL BUILTIN COMMANDS below), a word beginning with  # causes
      that  word and all remaining characters on that line to be ignored.  An interactive shell without
      the interactive_comments option enabled does not allow comments.  The interactive_comments option
      is on by default in interactive shells.


== QUOTING ==
== QUOTING ==