Fix bug in the count builtin, causing it to exit with status 0 even if no arguments where given

darcs-hash:20070909135734-75c98-2d0495a15440e50fb6521bffef85147832771c80.gz
This commit is contained in:
liljencrantz 2007-09-09 23:57:34 +10:00
parent b0ae3dc9cc
commit 370aeec44d

View file

@ -2363,7 +2363,7 @@ static int builtin_count( wchar_t ** argv )
int argc;
argc = builtin_count_args( argv );
sb_printf( sb_out, L"%d\n", argc-1 );
return !argc;
return !(argc-1);
}
static int builtin_contains( wchar_t ** argv )