ioannnikulin / minishell

2 stars 0 forks source link

load envvars #42

Open ioannnikulin opened 1 month ago

ioannnikulin commented 1 month ago

blocked by https://github.com/ioannnikulin/minishell/issues/3

ioannnikulin commented 4 weeks ago

Let's store PATH separately and all other environment variables separately. Here's sample insertion into PATH (it's not a map or a map entry, it's a double linked list!). Other envvars should be stored in this map, populated in the same param_get_envvars function. Not the mocked one that I linked, but the empty one below in the same file. We still have to figure out which envvars we're supposed to load from the system besides PATH. Looks like we don't need any system envvars besides PATH (please check)... we still should support them from user, so the map stays.