This commit is contained in:
Loic Deridder
2025-01-16 14:42:38 +01:00
parent 0bf69437bb
commit 583b3e034a
8 changed files with 199 additions and 18 deletions

View File

@@ -8,7 +8,7 @@ void builtin_env(char *str, char **envp)
(void)str;
while (envp[i])
{
if (envp[i][0])
if (envp[i][0] && ft_strchr(envp[i], '=') != NULL)
printf("%s\n", envp[i]);
i++;
}