Be more rigorous with the exit codes set by the parser and builtins

darcs-hash:20061009012102-ac50b-4f28c43dd1ccdcc04d1620a6da05218a99fd7337.gz
This commit is contained in:
axel
2006-10-09 11:21:02 +10:00
parent 7a8b468165
commit a074cd62bc
5 changed files with 84 additions and 49 deletions

View File

@@ -1816,7 +1816,7 @@ static void parse_job_main_loop( process_t *p,
if( unmatched_wildcard && !matched_wildcard )
{
j->wildcard_error = 1;
proc_set_last_status( 1 );
proc_set_last_status( STATUS_UNMATCHED_WILDCARD );
if( is_interactive && !is_block )
{
int tmp;