"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "init/profile.sh.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.

profile.sh.in  (modules-5.1.1.tar.bz2):profile.sh.in  (modules-5.2.0.tar.bz2)
# shellcheck shell=sh
# get current shell name by querying shell variables or looking at parent # get current shell name by querying shell variables or looking at parent
# process name # process name
if [ -n "${BASH:-}" ]; then if [ -n "${BASH:-}" ]; then
shell=${BASH##*/} if [ "${BASH##*/}" = 'sh' ]; then
shell='sh'
else
shell='bash'
fi
elif [ -n "${ZSH_NAME:-}" ]; then elif [ -n "${ZSH_NAME:-}" ]; then
shell=$ZSH_NAME shell=$ZSH_NAME
else else
shell=$(@BASENAME@ $(@PS@ -p $$ -ocomm=)) shell=$(@BASENAME@ "$(@PS@ -p $$ -ocomm=)")
fi fi
if [ -f @initdir@/$shell ]; then if [ -f "@initdir@/$shell" ]; then
. @initdir@/$shell . "@initdir@/$shell"
else else
. @initdir@/sh . '@initdir@/sh'
fi fi
 End of changes. 5 change blocks. 
5 lines changed or deleted 11 lines changed or added

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