diff options
author | axel <axel@liljencrantz.se> | 2006-06-04 09:15:17 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-06-04 09:15:17 +1000 |
commit | 6fd69bdda8b4d185fb636047ab8914989fc66252 (patch) | |
tree | 50883b516a46dec263490a0b20fb6319689e4956 /doc_src/count.txt | |
parent | a85f4cc1c48052487b2c258cb01748597be927a5 (diff) |
Many minor edits and clarifications to the documentation, including comments about the exit status of a few commands
darcs-hash:20060603231517-ac50b-03d252516eef21d4dd3a2ba0f5bb68e82525213b.gz
Diffstat (limited to 'doc_src/count.txt')
-rw-r--r-- | doc_src/count.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc_src/count.txt b/doc_src/count.txt index 06720274..db9c5e37 100644 --- a/doc_src/count.txt +++ b/doc_src/count.txt @@ -6,7 +6,7 @@ \subsection count-description Description -<tt>count</tt> returns the number of arguments that were passed to +<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, but this is not the only potential usage for the count command. @@ -18,6 +18,9 @@ count program, and if the user uses a help option, this help page is displayed, but if a help option is contained inside of a variable or is the result of expansion, it will be passed on to the count program. +Count exits with a non-zero exit status if no arguments where passed +to it, with zero otherwise. + \subsection count-example Example <pre> |