Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ <h2>The basic grammar of a bash command</h2>
<var>name</var> <strong>()</strong> <var>compound-command</var> [ <var>redirection</var> ]

<samp>exists() { [[ -x $(type -P "$1" 2&gt;/dev/null) ]]; }
exists gpg || echo "Please install GPG." &lt;&amp;2</samp>
exists gpg || echo "Please install GPG." &gt;&amp;2</samp>
</pre>

<p>You begin by specifying a <code>name</code> for your function. This is the name of your new command, you'll be able to run it later on by writing a simple command with that name.</p>
Expand Down