Merge manage variables with builtins & history
This commit is contained in:
commit
44daaaf097
7 changed files with 87 additions and 14 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jschaft <cecile.schaft@orange.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/23 14:15:12 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/06/05 17:45:33 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/06/06 16:36:19 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -26,6 +26,8 @@
|
|||
# include <sys/wait.h>
|
||||
# include "libft.h"
|
||||
# include "libtf.h"
|
||||
# include <readline/history.h>
|
||||
# include <readline/readline.h>
|
||||
|
||||
///// ASK COMMAND /////
|
||||
|
||||
|
|
@ -102,6 +104,14 @@ const char **get_path(const t_memclass mc, char *const envp[]);
|
|||
const char *search_path(
|
||||
const t_memclass mc, const char **path, const char *prog);
|
||||
|
||||
///// BUILTIN /////
|
||||
|
||||
// Check if the command is a builtin.
|
||||
bool is_builtin(const char *str);
|
||||
|
||||
// Execute the builtin command
|
||||
int exec_builtin(t_call call);
|
||||
|
||||
///// MAIN /////
|
||||
extern t_memclass g_mc;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue