moved define_yeti_variable into the variables, since we potentially need it there...
authorChris Koeritz <fred@gruntose.com>
Tue, 1 Sep 2015 23:47:07 +0000 (19:47 -0400)
committerChris Koeritz <fred@gruntose.com>
Tue, 1 Sep 2015 23:47:07 +0000 (19:47 -0400)
scripts/core/functions.sh
scripts/core/variables.sh

index ed5d19193c1f6eb5c7ecde332161d109f7e1a4c1..f6c4a714c852282fde76e4d860ba3f146f0ffb71 100644 (file)
@@ -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
+#  }
 
   ##############
 
index 3f2368e6a2d4e8e0616a82ee0dc2c2277bd40e6a..8c50f202781185419176ffbb8fdb9316229f344e 100644 (file)
@@ -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.