mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
Expansion: refactor in progress
This commit is contained in:
parent
ce24304e34
commit
95d9f6282a
11 changed files with 270 additions and 47 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue