Fix bug in for that causes crash on syntax error

darcs-hash:20060919142140-ac50b-48cbbdfd109e2b420d8e36acd5b13696445c0850.gz
This commit is contained in:
axel 2006-09-20 00:21:40 +10:00
parent e91e3b6593
commit 81d61c467b

View file

@ -2455,8 +2455,8 @@ static int builtin_for( wchar_t **argv )
{
sb_printf( sb_err,
_( L"%ls: Expected at least two arguments, got %d\n"),
argc ,
argv[0] );
argv[0] ,
argc );
builtin_print_help( argv[0], sb_err );
}
else if ( wcsvarname(argv[1]) )