aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/not.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc_src/not.txt')
-rw-r--r--doc_src/not.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/doc_src/not.txt b/doc_src/not.txt
index a1a1d206..746de9ba 100644
--- a/doc_src/not.txt
+++ b/doc_src/not.txt
@@ -1,21 +1,23 @@
\section not not - negate the exit status of a job
\subsection not-synopsis Synopsis
-<tt>not COMMAND [OPTIONS...]</tt>
+\fish{syn}
+not COMMAND [OPTIONS...]
+\endfish
\subsection not-description Description
-\c not negates the exit status of another command. If the exit status
-is zero, \c not returns 1. Otherwise, \c not returns 0.
+`not` negates the exit status of another command. If the exit status
+is zero, `not` returns 1. Otherwise, `not` returns 0.
\subsection not-example Example
The following code reports an error and exits if no file named spoon can be found.
-<pre>
+\fish
if not test -f spoon
- echo There is no spoon
- exit 1
+ echo There is no spoon
+ exit 1
end
-</pre>
+\endfish