mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-11 15:08:47 +02:00
「✏️」 norm: Normed everything and leak erased from the surface of the earth and what the fuck am i doing at this hour coding i shoud be sleeping 1:30am wtf god damn please give me a bed and fuck you yosyo 🖕
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/30 10:48:41 by adjoly #+# #+# */
|
||||
/* Updated: 2024/07/09 16:16:27 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/07/10 01:07:50 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -18,12 +18,11 @@
|
||||
#include <stdio.h>
|
||||
#include "libft.h"
|
||||
|
||||
t_cmd *get_redir_fd(void *content, t_env *env)
|
||||
t_cmd *get_redir_fd(void *content)
|
||||
{
|
||||
t_list *tmp;
|
||||
t_redir_sign sign[2];
|
||||
t_cmd *cmd;
|
||||
char *env_varred;
|
||||
|
||||
tmp = ((t_token *)content)->redirection;
|
||||
cmd = NULL;
|
||||
@ -39,8 +38,6 @@ t_cmd *get_redir_fd(void *content, t_env *env)
|
||||
cmd->outfile = STDOUT_FILENO;
|
||||
if (sign[1] == OUTFILE)
|
||||
cmd->infile = STDIN_FILENO;
|
||||
env_varred = env_var_replace(((t_token *)content)->argv, env);
|
||||
cmd = split_cmd(env_varred, cmd);
|
||||
free(env_varred);
|
||||
cmd = split_cmd(((t_token *)content)->argv, cmd);
|
||||
return (cmd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user