-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoken_simplification_utils_4.c
26 lines (24 loc) · 1.11 KB
/
token_simplification_utils_4.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* token_simplification_utils_4.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mthiry <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/08/11 09:53:12 by mthiry #+# #+# */
/* Updated: 2022/08/11 09:54:42 by mthiry ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void expansion_between_quote(t_node *elem)
{
if (elem->flag == B_QUOTE_P || elem->flag == B_QUOTE)
{
if (elem->type == DOLLAR_R)
{
free(elem->value);
elem->value = ft_strdup("$?");
}
elem->type = WORD;
}
}