mahahahad / Minishell

1 stars 1 forks source link

feat: added the unset builtin #17

Closed Ali-Danish-72 closed 3 months ago

Ali-Danish-72 commented 3 months ago

I added the unset builtin function. It works by identifying the variable in question within the two lists of the environment variables and deletes/frees the variable and content. For the change in the matrix list, it alters the pointers in a manner similar to lists, where the deleted entry is dropped from the indexing.

(PS: Forgot to push this earlier)