Files
modules/testsuite/modulefiles/setenv
Xavier Delaruelle 5ada9d5c77 Clean any previous ref count array on setenv/unsetenv
When manpulating path list with append-path/prepend-path/etc commands a
_modshare variable is set to keep track of how many times each reference
has been loaded. But if after these commands a setenv/unsetenv command
is used, the _modshare variable is left alone whereas the path list
variable is entirely replaced by a new value or destroyed.

To sanitize this kind of situation, any existing _modshare variable is
cleaned-up when the associated variable is targeted by a setenv or an
unsetenv command.

Non-regression tests 028-setenv-refcount and 038-unsetenv-refcount in
50-cmds suite have been added to check new behavior.
2017-06-27 07:16:16 +02:00
..
2013-01-10 15:48:30 -06:00