Use ahead of time validator to make sure that commands entered on the command line are valid

darcs-hash:20060527111456-ac50b-1bc070467029b851d34a1b99457415e3f0b24429.gz
This commit is contained in:
axel 2006-05-27 21:14:56 +10:00
parent 148cb68700
commit 42a260f1e6

View File

@ -2099,7 +2099,13 @@ void reader_run_command( wchar_t *cmd )
static int shell_test( wchar_t *b )
{
return !wcslen(b);
if( parser_test( b, 0 ) )
{
writech( L'\n' );
parser_test( b, 1 );
return 1;
}
return 0;
}
/**