diff options
author | 2006-01-31 03:54:26 +1000 | |
---|---|---|
committer | 2006-01-31 03:54:26 +1000 | |
commit | f59e9baab9f71a1f345dfec20ff27f7bbd1b694b (patch) | |
tree | f5cc69c8c7b87cba92ccdd68c9778574546478b5 /parser.c | |
parent | 1c6f685522083550abaf1bd4ba2ab7f0f989de30 (diff) |
Rename the 'terminal' flag to 'job_control', make sure fg and bg only considers jobs under job control and make it configurable which jobs are put under job control using the status builtin. Also add an option to the status builtin to print a stack trace.
darcs-hash:20060130175426-ac50b-46fb79797284cb600c67cb19462b53761446f00a.gz
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1031,7 +1031,7 @@ int eval_args( const wchar_t *line, array_list_t *args ) return 1; } -static void parser_stack_trace( block_t *b, string_buffer_t *buff) +void parser_stack_trace( block_t *b, string_buffer_t *buff) { if( !b ) return; @@ -1363,7 +1363,7 @@ static void parse_job_main_loop( process_t *p, case TOK_BACKGROUND: j->fg = 0; - j->terminal=0; + case TOK_END: { p->argv = list_to_char_arr( args ); @@ -2183,7 +2183,6 @@ static void eval_job( tokenizer *tok ) j->fg=1; j->constructed=0; j->skip_notification = is_subshell || is_block || is_event || (!is_interactive); - j->terminal = is_interactive && !is_subshell; current_block->job = j; |