mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
Documentation updates from Beni Cherniavsky
darcs-hash:20060919145203-ac50b-bc87b8f5e6a18395e4bc3e364da4a40ad97850e7.gz
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
|
||||
\section return return - Stop the innermost currently evaluated function
|
||||
|
||||
\subsection return-synopsis Synopsis
|
||||
<tt>function NAME; [COMMANDS...] return [STATUS]; [COMMANDS...] end</tt>
|
||||
<tt>function NAME; [COMMANDS...;] return [STATUS]; [COMMANDS...;] end</tt>
|
||||
|
||||
\subsection return-description Description
|
||||
|
||||
@@ -17,9 +16,11 @@ function.
|
||||
|
||||
\subsection return-example Example
|
||||
The following code is an implementation of the false command as a fish function
|
||||
<p>
|
||||
<pre>function false
|
||||
return 1
|
||||
end</pre>
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
function false
|
||||
return 1
|
||||
end
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user