Polished echo, and the builtins should work now (not tested in pipes)
This commit is contained in:
parent
85910da2fd
commit
45a55df528
9 changed files with 118 additions and 57 deletions
|
|
@ -6,17 +6,17 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/08/07 14:13:41 by rparodi #+# #+# */
|
||||
/* Updated: 2024/08/10 19:58:12 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/08/11 11:26:08 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "exec/builtins.h"
|
||||
#include "me/types.h"
|
||||
|
||||
t_error builtin_export(t_state *state, t_spawn_info info)
|
||||
t_error builtin_export(t_state *state, t_builtin_spawn_info info, t_i32 *exit_code)
|
||||
{
|
||||
if (info.arguments.len == 1)
|
||||
return (builtin_env___(state, info));
|
||||
if (info.args.len == 1)
|
||||
return (builtin_env___(state, info, exit_code));
|
||||
|
||||
return (NO_ERROR);
|
||||
return (*exit_code = 0, NO_ERROR);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue