mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fix bug in for that causes crash on syntax error
darcs-hash:20060919142140-ac50b-48cbbdfd109e2b420d8e36acd5b13696445c0850.gz
This commit is contained in:
parent
e91e3b6593
commit
81d61c467b
1 changed files with 2 additions and 2 deletions
|
@ -2455,8 +2455,8 @@ static int builtin_for( wchar_t **argv )
|
||||||
{
|
{
|
||||||
sb_printf( sb_err,
|
sb_printf( sb_err,
|
||||||
_( L"%ls: Expected at least two arguments, got %d\n"),
|
_( L"%ls: Expected at least two arguments, got %d\n"),
|
||||||
argc ,
|
argv[0] ,
|
||||||
argv[0] );
|
argc );
|
||||||
builtin_print_help( argv[0], sb_err );
|
builtin_print_help( argv[0], sb_err );
|
||||||
}
|
}
|
||||||
else if ( wcsvarname(argv[1]) )
|
else if ( wcsvarname(argv[1]) )
|
||||||
|
|
Loading…
Reference in a new issue