「Transwiki:Bash Shell Scripting」の版間の差分

削除された内容 追加された内容
Fu7mu4 (トーク | 投稿記録)
Fu7mu4 (トーク | 投稿記録)
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>[&#x5B; -e file.txt &#x5D;]</tt> is true, then <tt>[&#x5B; ! -e file.txt &#x5D;]</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>