Closed Ali-Danish-72 closed 3 months ago
While you're testing the export
, take a look at the pwd
as well. Also don't worry about the Mac test, It's crying about the readline functions.
Somehow the previous PR closed so I had to open this one. This is practically a clone of the #18 PR.
Could we remove the MacOS compilation check? It seems rather redundant to keep it, considering the fact that as we progress, readline is going to become more necessary.
As I keep on waiting for the review, I keep adding bits and pieces here and there 😅
The
export
builtin is complete in all of its functionality. When run without arguments, it will print the list of environment variables in alphabetical order. When run with arguments, it will go through them to ensure validity and assign the new variables to thelist
as well as thematrix
according to the behavior of the originalexport
builtin.An empty value will not update the
matrix
. An existingkey
without avalue
does nothing where an existingkey
with avalue
is updated in thematrix
as well aslist
. A newkey
with novalue
is added to thematrix
and thelist
, and will display thekey
correctly when prompted. A newkey
withvalue
is added to thematrix
and thelist
.