Add validator check to make sure the second argument to 'for' is 'in'

darcs-hash:20060521221604-ac50b-5bc4ce217a08304f68b97b20e908ea1279fe26e9.gz
This commit is contained in:
axel
2006-05-22 08:16:04 +10:00
parent 07e14ed7a8
commit b746a803a9
5 changed files with 70 additions and 27 deletions

View File

@@ -2590,7 +2590,7 @@ static int builtin_for( wchar_t **argv )
else if (wcscmp( argv[2], L"in") != 0 )
{
sb_printf( sb_err,
_( L"%ls: Second argument must be 'in'\n" ),
BUILTIN_FOR_ERR_IN,
argv[0] );
builtin_print_help( argv[0], sb_err );
}