From: Chris Koeritz Date: Tue, 1 Sep 2015 23:47:07 +0000 (-0400) Subject: moved define_yeti_variable into the variables, since we potentially need it there... X-Git-Tag: 2.140.90~595 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=759f330706f48c0344e5c1356f959524fe334a22;p=feisty_meow.git moved define_yeti_variable into the variables, since we potentially need it there before functions has been loaded. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index ed5d1919..f6c4a714 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -516,21 +516,21 @@ return 0 # this is a new or modified definition. if the feisty meow codebase is # unloaded, then so are all the variables that were defined. # this function always exports the variables it defines. - function define_yeti_variable() - { -# if variable exists already, save old value for restore, -# otherwise save null value for restore, -# have to handle unsetting if there was no prior value of one -# we newly defined. -# add variable name to a list of feisty defined variables. - -#hmmm: first implem just sets it up and exports the variable. -# i.e., this method always exports. -export "${@}" - - -return 0 - } +# function define_yeti_variable() +# { +## if variable exists already, save old value for restore, +## otherwise save null value for restore, +## have to handle unsetting if there was no prior value of one +## we newly defined. +## add variable name to a list of feisty defined variables. +# +##hmmm: first implem just sets it up and exports the variable. +## i.e., this method always exports. +#export "${@}" +# +# +#return 0 +# } ############## diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index 3f2368e6..8c50f202 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -7,6 +7,31 @@ # environment. # Author: Chris Koeritz +############## + +#hmmm: moved from functions.sh; does that hose everything up? + + # defines a variable within the feisty meow environment and remembers that + # this is a new or modified definition. if the feisty meow codebase is + # unloaded, then so are all the variables that were defined. + # this function always exports the variables it defines. + function define_yeti_variable() + { +# if variable exists already, save old value for restore, +# otherwise save null value for restore, +# have to handle unsetting if there was no prior value of one +# we newly defined. +# add variable name to a list of feisty defined variables. + +#hmmm: first implem just sets it up and exports the variable. +# i.e., this method always exports. +export "${@}" + + +return 0 + } + + ############## # this section should always run or bash will reset them on us.