fix: split \t in redirection
This commit is contained in:
parent
91ef62d8f9
commit
227d16ca53
@ -6,7 +6,7 @@
|
|||||||
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/03/27 13:44:22 by cchauvet #+# #+# */
|
/* Created: 2023/03/27 13:44:22 by cchauvet #+# #+# */
|
||||||
/* Updated: 2023/04/11 16:19:24 by cchauvet ### ########.fr */
|
/* Updated: 2023/04/13 13:26:06 by cchauvet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ int ft_redirection(t_data *data, t_cmd *cmd, char *cmd_str)
|
|||||||
cmd->fd_in[1] = -1;
|
cmd->fd_in[1] = -1;
|
||||||
cmd->fd_out[0] = -1;
|
cmd->fd_out[0] = -1;
|
||||||
cmd->fd_out[1] = -1;
|
cmd->fd_out[1] = -1;
|
||||||
tab = ft_split_charset_quoted(cmd_str, " ");
|
tab = ft_split_charset_quoted(cmd_str, " \t");
|
||||||
if (tab == NULL)
|
if (tab == NULL)
|
||||||
{
|
{
|
||||||
ft_eprintf("minishell: malloc failed\n");
|
ft_eprintf("minishell: malloc failed\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user