From 954c99a5ad1616104af3fa2e4729849f3fe8f7e6 Mon Sep 17 00:00:00 2001 From: liljencrantz Date: Sat, 22 Sep 2007 00:43:01 +1000 Subject: [PATCH] Minor improvement to docs for count builtin darcs-hash:20070921144301-75c98-02d497e712c6932322a74d82fc7a772c92e19552.gz --- doc_src/count.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc_src/count.txt b/doc_src/count.txt index 8b6b14c61..7287e19b6 100644 --- a/doc_src/count.txt +++ b/doc_src/count.txt @@ -13,9 +13,10 @@ potential usage for the count command. The count command does not accept any options, not even '-h'. This way the user does not have to worry about an array containing elements such as dashes. \c fish performs a special check when invoking the -count program, and if the user uses a help option, this help page is +count command, 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. +is the result of expansion, it will simply be counted like any other +argument. Count exits with a non-zero exit status if no arguments where passed to it, with zero otherwise.