single quote expander

This commit is contained in:
lderidde
2025-02-08 20:59:56 +01:00
parent 1e5e7a1bfc
commit c102a6884c
2 changed files with 26 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ int ifremove_quote(t_ast_n *node, int j)
c = '\'';
else
c = '\"';
if (c && (ft_strchr(node->args[j], c) && ft_strrchr(node->args[j], c)))
if (c && (ft_strchr(node->args[j], c) != ft_strrchr(node->args[j], c)))
remove_quote(node, j, c);
if (c)
ret = 1;