diff --git a/FIX.md b/FIX.md index 06216a5..46ef164 100644 --- a/FIX.md +++ b/FIX.md @@ -8,3 +8,4 @@ - [ ] Fix CTRL+E and -> - [ ] Multi line editing - [ ] Foreach in if +- [ ] Output flushing when open an other shell with 42sh diff --git a/src/builtins.h b/src/builtins.h index 3bd5d40..a52c1b6 100644 --- a/src/builtins.h +++ b/src/builtins.h @@ -55,4 +55,5 @@ int builtins_if(ef_t *ef, char **args); int builtins_echo(ef_t *ef, char **args); int builtins_astprint(ef_t *, char **args); int builtins_termname(ef_t *ef, char **); +int builtins_fg(ef_t *ef, char **); #endif /* BUILTIND_H */ diff --git a/src/utils/free.c b/src/utils/free.c index e5136ff..0c56b3c 100644 --- a/src/utils/free.c +++ b/src/utils/free.c @@ -26,4 +26,5 @@ void free_everything(exec_ctx_t *ec) } free(ec->history_command); free(ec->local->local_var); + free(ec->jobs.jobs); }