fix(parser): small typo
This commit is contained in:
parent
98d18eef7d
commit
a70943e5cc
1 changed files with 2 additions and 1 deletions
|
|
@ -160,13 +160,14 @@ struct ast *parse_command(struct lexer_context *ctx)
|
|||
}
|
||||
else if (is_first(*token, RULE_SHELL_COMMAND))
|
||||
{
|
||||
parse_shell_command(ctx);
|
||||
result = parse_shell_command(ctx);
|
||||
}
|
||||
else
|
||||
{
|
||||
perror("Syntax error: unexpected token");
|
||||
return NULL;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/* @brief: frees command_elements and redirections lists (helper func)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue