「Transwiki:Bash Shell Scripting」の版間の差分
削除された内容 追加された内容
1,271 行
<table class="wikitable">
<tr> <th>シンボル</th> <th>説明</th> </tr>
<tr> <td><tt>!</tt></td> <td><ul><li>Logically negates the exit status of a pipeline. For example, if <tt>grep YES votes.txt</tt> returns <tt>0</tt>, then <tt>! grep YES votes.txt</tt> returns <tt>1</tt>, but is otherwise equivalent.</li> <li>Also supported by the <tt>[ ... ]</tt> builtin, and inside conditional expressions. For example, if <tt>[[ -e file.txt ]]</tt> is true, then <tt>[[ ! -e file.txt ]]</tt> is false.</li> <li>Also supported in arithmetic expressions. For example, if <tt>$i</tt> is nonzero, then <tt>$(( ! i ))</tt> is <tt>0</tt>.</li> <li>See also <tt>#!</tt> below.</li></ul></td> </tr>
|