diff options
author | axel <axel@liljencrantz.se> | 2006-05-27 21:14:56 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-05-27 21:14:56 +1000 |
commit | 42a260f1e6f8c16aefb4786099916b6799aa4bda (patch) | |
tree | ded09e24ae374a51fea532089b7c37d4de4280a9 | |
parent | 148cb68700bbe660869e4e4d1cfee3a1b10cb480 (diff) |
Use ahead of time validator to make sure that commands entered on the command line are valid
darcs-hash:20060527111456-ac50b-1bc070467029b851d34a1b99457415e3f0b24429.gz
-rw-r--r-- | reader.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; } /** |