"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "init/zsh.in" between
modules-5.1.1.tar.bz2 and modules-5.2.0.tar.bz2

About: The Environment Modules package provides for the dynamic modification of a user’s environment via modulefiles.

zsh.in  (modules-5.1.1.tar.bz2):zsh.in  (modules-5.2.0.tar.bz2)
skipping to change at line 39 skipping to change at line 39
_mlrv="MODULES_RUNENV_${_mlv}"; _mlrv="MODULES_RUNENV_${_mlv}";
_mlre="${_mlre:-}${_mlv}='$(eval 'echo ${'$_mlrv':-}')' "; _mlre="${_mlre:-}${_mlv}='$(eval 'echo ${'$_mlrv':-}')' ";
fi; fi;
done; done;
if [ -n "${_mlre:-}" ]; then if [ -n "${_mlre:-}" ]; then
_mlre="eval ${_mlre}__MODULES_QUARANTINE_SET=1 "; _mlre="eval ${_mlre}__MODULES_QUARANTINE_SET=1 ";
fi; fi;
# define module command and surrounding initial environment (default value # define module command and surrounding initial environment (default value
# for MODULESHOME, MODULEPATH, LOADEDMODULES and parse of init config files) # for MODULESHOME, MODULEPATH, LOADEDMODULES and parse of init config files)
_mlcode=$(${^^=_mlre:-}@TCLSH@ @libexecdir@/modulecmd.tcl zsh autoinit) _mlcode=$(${^^=_mlre:-}@TCLSH@ '@libexecdir@/modulecmd.tcl' zsh autoinit)
_mlret=$? _mlret=$?
# clean temp variables used to setup quarantine # clean temp variables used to setup quarantine
if [ -n "${_mlIFS+x}" ]; then if [ -n "${_mlIFS+x}" ]; then
IFS=$_mlIFS; IFS=$_mlIFS;
unset _mlIFS; unset _mlIFS;
else else
unset IFS; unset IFS;
fi; fi;
unset _mlre _mlv _mlrv unset _mlre _mlv _mlrv
# no environment alteration if the above autoinit command failed # no environment alteration if the above autoinit command failed
if [ $_mlret -eq 0 ]; then if [ $_mlret -eq 0 ]; then
eval "$_mlcode" eval "$_mlcode"
@setzshfpath@ @setzshfpath@
@setzshfpath@ # setup FPATH to put module completion at hand in case zsh compl etion enabled @setzshfpath@ # setup FPATH to put module completion at hand in case zsh compl etion enabled
@setzshfpath@ # cannot be configured by autoinit as FPATH is not an environmen t variable
@setzshfpath@ if [[ ! ":$FPATH:" =~ ':@initdir@/zsh-functions:' ]]; then @setzshfpath@ if [[ ! ":$FPATH:" =~ ':@initdir@/zsh-functions:' ]]; then
@setzshfpath@ FPATH=@initdir@/zsh-functions${FPATH:+:}$FPATH @setzshfpath@ FPATH="@initdir@/zsh-functions${FPATH:+:}$FPATH"
@setzshfpath@ export FPATH
@setzshfpath@ fi @setzshfpath@ fi
@setbinpath@
@setbinpath@ if [[ ! ":$PATH:" =~ ':@bindir@:' ]]; then
@setbinpath@@prependbinpath@ PATH=@bindir@${PATH:+:}$PATH
@setbinpath@@appendbinpath@ PATH=$PATH${PATH:+:}@bindir@
@setbinpath@ export PATH
@setbinpath@ fi
@setmanpath@
@setmanpath@ # initialize MANPATH if empty (zsh defines MANPATH empty by defau
lt) with a
@setmanpath@ # value that preserves manpath system configuration even after ad
dition of
@setmanpath@ # paths to this variable by modulefiles
@setmanpath@ if [ ! -n "${MANPATH:+x}" ]; then
@setmanpath@ MANPATH=:
@setmanpath@ export MANPATH
@setmanpath@ fi
@setmanpath@@usemanpath@ if [[ ! ":$(manpath 2>/dev/null):" =~ ':@mandir@:' ]]
; then
@setmanpath@@notusemanpath@ if [[ ! ":$MANPATH:" =~ ':@mandir@:' ]]; then
@setmanpath@ if [ "$MANPATH" = ':' ] || [ "$MANPATH" = '' ]; then
@setmanpath@ _mlpathsep=''
@setmanpath@ else
@setmanpath@ _mlpathsep=:
@setmanpath@ fi
@setmanpath@@prependmanpath@ MANPATH=@mandir@$_mlpathsep$MANPATH
@setmanpath@@appendmanpath@ MANPATH=$MANPATH$_mlpathsep@mandir@
@setmanpath@ export MANPATH
@setmanpath@ unset _mlpathsep
@setmanpath@ fi
fi fi
unset _mlcode _mlret unset _mlcode _mlret
# restore shell debugging options if disabled # restore shell debugging options if disabled
if [ -n "${_mlshdbg:-}" ]; then if [ -n "${_mlshdbg:-}" ]; then
set -$_mlshdbg; set -$_mlshdbg;
unset _mlshdbg; unset _mlshdbg;
fi; fi;
 End of changes. 4 change blocks. 
32 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)