32 ft_putstr_fd(
"minishell: env: too many arguments\n", STDERR_FILENO);
40 ft_putstr_fd(current->
key, STDOUT_FILENO);
41 ft_putchar_fd(
'=', STDOUT_FILENO);
42 ft_putendl_fd(current->
value, STDOUT_FILENO);
44 current = current->
next;
int builtin_env(char **args, t_env *env)
Implement the env command.
Shell builtin commands prototypes.
Environment variable (doubly linked list)
char * value
Value (NULL if export only)
struct s_env * next
Next node.