mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
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:
parent
b0ae3dc9cc
commit
370aeec44d
1 changed files with 1 additions and 1 deletions
|
@ -2363,7 +2363,7 @@ static int builtin_count( wchar_t ** argv )
|
||||||
int argc;
|
int argc;
|
||||||
argc = builtin_count_args( argv );
|
argc = builtin_count_args( argv );
|
||||||
sb_printf( sb_out, L"%d\n", argc-1 );
|
sb_printf( sb_out, L"%d\n", argc-1 );
|
||||||
return !argc;
|
return !(argc-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int builtin_contains( wchar_t ** argv )
|
static int builtin_contains( wchar_t ** argv )
|
||||||
|
|
Loading…
Reference in a new issue