feat(redir): fieldsplit redir target, and handle ambiguous redirects

This commit is contained in:
Khaïs COLIN 2025-04-21 08:25:49 +02:00
parent 5de82f2940
commit 2dd20b21bc
10 changed files with 137 additions and 12 deletions

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/27 16:21:56 by khais #+# #+# */
/* Updated: 2025/04/18 14:03:39 by khais ### ########.fr */
/* Updated: 2025/04/21 08:45:05 by khais ### ########.fr */
/* */
/* ************************************************************************** */
@ -44,7 +44,10 @@ static t_simple_cmd *post_process_command(t_simple_cmd *cmd, t_minishell *app)
if (simple_cmd_expand_vars(cmd, app) == NULL)
return (NULL);
if (simple_cmd_fieldsplit(cmd) == NULL)
{
app->last_return_value = 1;
return (NULL);
}
if (simple_cmd_expand_wildcards(cmd) == NULL)
return (NULL);
if (simple_cmd_remove_quotes(cmd) == NULL)