moved define_yeti_variable into the variables, since we potentially need it there...
[feisty_meow.git] / scripts / core / variables.sh
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.