It is documented this way, but the common builtin_run function was checking
for -h or --help before even calling the builtin_count. Without this
functions like funced can't use count to check the number of arguments
before checking for -h or --help.
---
 builtin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin.c b/builtin.c
index a90e14c..41a9526 100644
--- a/builtin.c
+++ b/builtin.c
@@ -3871,7 +3871,7 @@ static int internal_help( wchar_t *cmd )
 {
        CHECK( cmd, 0 );
        return contains( cmd, L"for", L"while", L"function",
-                        L"if", L"end", L"switch" );
+                        L"if", L"end", L"switch", L"count" );
 }
 
 
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to