Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed El Ghali Tagemouati committed Feb 6, 2023
1 parent b1dd9a5 commit 8e8765f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builtins/unset.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ int unset(char **args, int fd)
fatal("unset", "invalid identifier");
return (1);
}
if (!ft_strcmp(*args, "_"))
{
args++;
continue ;
}
pop_env(*args);
args++;
}
Expand Down

0 comments on commit 8e8765f

Please sign in to comment.