diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-16 16:40:22 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-16 16:40:22 +0200 |
| commit | 3bb997212b3a0d140a34932f9deff52793673d49 (patch) | |
| tree | 2df7ed965a0a29a1c47442831218cdf553633dfb /src/eval/operation.c | |
| parent | e439b71d807529734f04ce9d78b98c12022e7c72 (diff) | |
| download | minishell-3bb997212b3a0d140a34932f9deff52793673d49.tar.gz minishell-3bb997212b3a0d140a34932f9deff52793673d49.tar.bz2 minishell-3bb997212b3a0d140a34932f9deff52793673d49.zip | |
Added g_state to store global variables, Refactoring tok_assign_str
Diffstat (limited to 'src/eval/operation.c')
| -rw-r--r-- | src/eval/operation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval/operation.c b/src/eval/operation.c index cd154b5..fbdf5bb 100644 --- a/src/eval/operation.c +++ b/src/eval/operation.c @@ -58,7 +58,7 @@ int eval_operation(int fds[2], t_env env, t_ast *ast) } if ((status = eval(left_fds, env, ast->op.left, NULL, FD_NONE)) == EVAL_FATAL) return (EVAL_FATAL); - g_last_status = status; + g_state.last_status = status; if ((ast->op.sep == TAG_AND && status != 0) || (ast->op.sep == TAG_PIPE && status != 0) || (ast->op.sep == TAG_OR && status == 0)) |
