Subst: A norm NON-compliant and incomplete version

The code does not update flags yet and is to be refactored to conform to the
norm.
Tests required but needing a new version of the wordsplitting code.
This commit is contained in:
Jérôme Guélen 2025-02-28 18:48:30 +01:00
parent 2dd54e2827
commit e348040ea4
No known key found for this signature in database
10 changed files with 328 additions and 91 deletions

29
src/subst/wildcard_exp.c Normal file
View file

@ -0,0 +1,29 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* wildcard_exp.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/23 15:02:59 by jguelen #+# #+# */
/* Updated: 2025/02/25 10:07:59 by jguelen ### ########.fr */
/* */
/* ************************************************************************** */
#include "subst.h"
/*
** TODO
*/
/*
** A function designed to present all possible * filename expansions for the
** current directory.
** Does not take into account any other wildcard and does only search the
** current working directory.
** @PARAM A C compliant character string representing a pattern for a filename.
** @RETURN A NULL-terminated pointer to a wordlist
*/
t_wordlist *expand_star(char *file_pattern)
{
}