Expansion: refactor in progress

This commit is contained in:
Jérôme Guélen 2025-03-08 17:32:47 +01:00
parent ce24304e34
commit 95d9f6282a
No known key found for this signature in database
11 changed files with 270 additions and 47 deletions

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/06 13:01/15 by khais #+# #+# */
/* Updated: 2025/03/06 13:01:15 by khais ### ########.fr */
/* Updated: 2025/03/06 18:07:20 by jguelen ### ########.fr */
/* */
/* ************************************************************************** */
@ -18,6 +18,16 @@
#include "../src/env/env.h"
#include "../src/env/env_manip.h"
static t_worddesc *create_single_word(char *str)
{
t_wordlist *words = minishell_wordsplit(str);
assert(wordlist_get(words, 0) != NULL);
assert(wordlist_get(words, 1) == NULL);
t_worddesc *word = wordlist_pop(&words);
return (word);
}
/*
** Test file for the different expansion/substitution types of minishell.
*/