Support for implicit cd, no-exec, and the exit builtin. All tests now

pass (!). Error reporting still unsteady.
This commit is contained in:
ridiculousfish
2013-12-29 16:23:26 -08:00
parent a42711e31c
commit a9787b769f
7 changed files with 250 additions and 53 deletions

View File

@@ -2740,7 +2740,7 @@ int parser_t::eval(const wcstring &cmd_str, const io_chain_t &io, enum block_typ
while (tok_has_next(current_tokenizer) &&
!error_code &&
!sanity_check() &&
!exit_status())
!shell_is_exiting())
{
this->eval_job(current_tokenizer);
event_fire(NULL);
@@ -2759,7 +2759,7 @@ int parser_t::eval(const wcstring &cmd_str, const io_chain_t &io, enum block_typ
break;
}
if ((!error_code) && (!exit_status()) && (!proc_get_last_status()))
if ((!error_code) && (!shell_is_exiting()) && (!proc_get_last_status()))
{
//debug( 2, L"Status %d\n", proc_get_last_status() );