summaryrefslogtreecommitdiff
path: root/userland/minibox/utilities/sh/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/minibox/utilities/sh/ast.c')
-rw-r--r--userland/minibox/utilities/sh/ast.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/userland/minibox/utilities/sh/ast.c b/userland/minibox/utilities/sh/ast.c
index 64dd725..98f4818 100644
--- a/userland/minibox/utilities/sh/ast.c
+++ b/userland/minibox/utilities/sh/ast.c
@@ -61,6 +61,11 @@ int parse_command(struct TOKEN **token_ptr, struct AST *cur) {
cur->file_out = token->string_rep;
token = token->next;
}
+ // Parse '&'
+ if (token && TOKEN_BACKGROUND == token->type) {
+ cur->should_background = 1;
+ token = token->next;
+ }
// Parse pipe '|'
if (token && TOKEN_PIPE == token->type) {
cur->pipe_rhs = allocate_ast();