mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-04 15:51:15 -03:00
Minor edits, additional comments, etc.
darcs-hash:20060219015438-ac50b-b6346876460912f3c27d1bb4287aeab962260ab6.gz
This commit is contained in:
20
parser.c
20
parser.c
@@ -1311,11 +1311,10 @@ static void parse_job_main_loop( process_t *p,
|
||||
while( 1 )
|
||||
{
|
||||
|
||||
/* debug( 2, L"Read token %ls\n", wcsdup(tok_last( tok )) ); */
|
||||
|
||||
switch( tok_last_type( tok ) )
|
||||
{
|
||||
case TOK_PIPE:
|
||||
{
|
||||
if( (p->type == INTERNAL_EXEC) )
|
||||
{
|
||||
error( SYNTAX_ERROR,
|
||||
@@ -1332,19 +1331,20 @@ static void parse_job_main_loop( process_t *p,
|
||||
}
|
||||
tok_next( tok );
|
||||
|
||||
if( !parse_job( p->next, j, tok ))
|
||||
{
|
||||
/*
|
||||
Don't do anything on failiure. parse_job will notice the error flag beeing set
|
||||
*/
|
||||
/*
|
||||
Don't do anything on failiure. parse_job will notice the error flag beeing set
|
||||
*/
|
||||
parse_job( p->next, j, tok );
|
||||
|
||||
}
|
||||
is_finished = 1;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
case TOK_BACKGROUND:
|
||||
{
|
||||
j->fg = 0;
|
||||
|
||||
}
|
||||
|
||||
case TOK_END:
|
||||
{
|
||||
halloc_register( j, p->argv=list_to_char_arr( args ) );
|
||||
|
||||
Reference in New Issue
Block a user