Re: csh dounsetenv()

2017-12-18 Thread Anton Lindqvist
On Sun, Dec 17, 2017 at 05:54:23PM +0800, Michael W. Bombardieri wrote: > Hello, > > The free() at the top of dounsetenv() in csh(1) isn't needed > because name is always freed before returning at bottom of function. > Also, name itself is never returned so it doesn't need to be static. > >

csh dounsetenv()

2017-12-17 Thread Michael W. Bombardieri
Hello, The free() at the top of dounsetenv() in csh(1) isn't needed because name is always freed before returning at bottom of function. Also, name itself is never returned so it doesn't need to be static. ./csh setenv HEY YU unsetenv HEY printenv I ran the above and it seems to work the same