fixed an oops where we had been expecting bash to convey our functions
authorChris Koeritz <fred@gruntose.com>
Wed, 22 Feb 2012 15:17:49 +0000 (10:17 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 22 Feb 2012 15:17:49 +0000 (10:17 -0500)
to subshells, which it just will not do.

scripts/core/launch_feisty_meow.sh
scripts/core/variables.sh

index 03db5cb8f4d831f95957f99257654c2ead48f485..d6aed1e00ee7d10de54efbdbae35b345b413f0f2 100644 (file)
@@ -48,6 +48,16 @@ if [ -z "$FEISTY_MEOW_GENERATED" ]; then
 
 fi
 
+##############
+  
+# include helpful functions.  we do this every time rather than making it part
+# of variable initialization, because functions cannot be exported to
+# sub-shells in bash (much like aliases cannot, to our infinite chagrin after
+# having migrated from korn shell...).
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
+  
+##############
+  
 # check hash table before searching path.
 shopt -s checkhash
 # don't check path for sourced files.
index 5586ea1680435f2ec1784dadf324b4c85397682a..1f37bb821b9608a2a08a79738da4a902b325a65d 100644 (file)
@@ -61,11 +61,6 @@ if [ -z "$NECHUNG" ]; then
   
   ##############
   
-  # include helpful functions.
-  source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
-  
-  ##############
-  
   # user variables, sort of...  if they haven't given themselves a name yet,
   # then we will make one up for them.