aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/count.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc_src/count.txt')
-rw-r--r--doc_src/count.txt26
1 files changed, 11 insertions, 15 deletions
diff --git a/doc_src/count.txt b/doc_src/count.txt
index 7923ca00..279ead7d 100644
--- a/doc_src/count.txt
+++ b/doc_src/count.txt
@@ -1,29 +1,25 @@
\section count count - count the number of elements of an array
\subsection count-synopsis Synopsis
- <tt>count $VARIABLE</tt>
+\fish{synopsis}
+count $VARIABLE
+\endfish
\subsection count-description Description
-<tt>count</tt> prints the number of arguments that were
-passed to it. This is usually used to find out how many elements an
-environment variable array contains.
+`count` prints the number of arguments that were passed to it. This is usually used to find out how many elements an environment variable array contains.
-\c count does not accept any options, including '-h'.
+`count` does not accept any options, including `-h` or `--help`.
+
+`count` exits with a non-zero exit status if no arguments were passed to it, and with zero if at least one argument was passed.
-\c count exits with a non-zero exit status if no arguments were passed
-to it, and with zero if at least one argument was passed.
\subsection count-example Example
-<pre>
+\fish
count $PATH
-</pre>
-
-returns the number of directories in the users PATH variable.
+# Returns the number of directories in the users PATH variable.
-<pre>
count *.txt
-</pre>
-
-returns the number of files in the current working directory ending with the suffix '.txt'.
+# Returns the number of files in the current working directory ending with the suffix '.txt'.
+\endfish \ No newline at end of file