Print help message when the case builtin is misused

darcs-hash:20060719232226-ac50b-c61b4b6d498dbfbe83ee1bc4c37766e1a9662630.gz
This commit is contained in:
axel 2006-07-20 09:22:26 +10:00
parent f36811b7be
commit a0c40fcf8d

View file

@ -3198,11 +3198,16 @@ int parser_test( const wchar_t * buff,
if( out )
{
char *h;
error( SYNTAX_ERROR,
tok_get_pos( &tok ),
INVALID_CASE_ERR_MSG );
print_errors( out, prefix);
h = builtin_help_get( L"case" );
if( h )
sb_printf( out, L"%s", h );
}
}
}