Commit Graph

7 Commits

Author SHA1 Message Date
Rob Landley
dd75e81e3d The expand should expand. 2020-01-16 07:09:57 -06:00
Rob Landley
2c6b319f46 Only free the environment variables we didn't inherit from exec. 2020-01-03 20:17:16 -06:00
Rob Landley
953b23aad3 Next round of toysh work, with associated lib plumbing. 2019-12-12 22:02:35 -06:00
Rob Landley
121322285a Add a couple comments. 2019-05-03 11:45:43 -05:00
Elliott Hughes
bd7c5c0555 env: fix case where a variable is replaced.
Found when trying to update the toybox prebuilt used for the Android
build.

Also add the corresponding test.
2019-05-03 11:35:59 -05:00
Rob Landley
543b2580c7 Add xunsetenv() for the error checking. 2019-04-20 03:05:07 -05:00
Rob Landley
71c3f623c6 New xsetenv() plumbing (repeatedly set same environment variables without
leaking memory), and mod env command to test it.
2019-04-20 02:51:51 -05:00