Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/share/Modules/init
File: ruby.rb
# define modules runtine quarantine configuration
[0] Fix | Delete
ENV['MODULES_RUN_QUARANTINE'] = 'LD_LIBRARY_PATH LD_PRELOAD'
[1] Fix | Delete
[2] Fix | Delete
# setup quarantine if defined
[3] Fix | Delete
_mlre = ''
[4] Fix | Delete
if ENV.has_key?('MODULES_RUN_QUARANTINE') then
[5] Fix | Delete
ENV['MODULES_RUN_QUARANTINE'].split(' ').each do |_mlv|
[6] Fix | Delete
if _mlv =~ /^[A-Za-z_][A-Za-z0-9_]*$/ then
[7] Fix | Delete
if ENV.has_key?(_mlv) then
[8] Fix | Delete
_mlre << _mlv + "_modquar='" + ENV[_mlv].to_s + "' "
[9] Fix | Delete
end
[10] Fix | Delete
_mlrv = 'MODULES_RUNENV_' + _mlv
[11] Fix | Delete
_mlre << _mlv + "='" + ENV[_mlrv].to_s + "' "
[12] Fix | Delete
end
[13] Fix | Delete
end
[14] Fix | Delete
unless _mlre.empty?
[15] Fix | Delete
_mlre = 'env ' + _mlre
[16] Fix | Delete
end
[17] Fix | Delete
end
[18] Fix | Delete
[19] Fix | Delete
# define module command and surrounding initial environment (default value
[20] Fix | Delete
# for MODULESHOME, MODULEPATH, LOADEDMODULES and parse of init config files)
[21] Fix | Delete
eval `#{_mlre}/usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl ruby autoinit`
[22] Fix | Delete
[23] Fix | Delete
# redefine module command if compat version has been activated
[24] Fix | Delete
if ENV['MODULES_USE_COMPAT_VERSION'] == '1' then
[25] Fix | Delete
ENV['MODULES_CMD'] = '/usr/share/Modules/libexec/modulecmd-compat'
[26] Fix | Delete
class ENVModule
[27] Fix | Delete
def ENVModule.module(*args)
[28] Fix | Delete
if args[0].kind_of?(Array) then
[29] Fix | Delete
args = args[0].join(' ')
[30] Fix | Delete
else
[31] Fix | Delete
args = args.join(' ')
[32] Fix | Delete
end
[33] Fix | Delete
eval `/usr/share/Modules/libexec/modulecmd-compat ruby #{args}`
[34] Fix | Delete
# return value as done on new main version
[35] Fix | Delete
return true
[36] Fix | Delete
end
[37] Fix | Delete
end
[38] Fix | Delete
end
[39] Fix | Delete
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function