[Fai-commit] r5839 - trunk/lib

Thomas Lange lange at alioth.debian.org
Sun Jul 4 13:17:57 UTC 2010


Author: lange
Date: 2010-07-04 13:17:51 +0000 (Sun, 04 Jul 2010)
New Revision: 5839

Modified:
   trunk/lib/subroutines
Log:
add different implementation for dumping variables, thanks to Andreas Schuldei


Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2010-07-04 10:47:35 UTC (rev 5838)
+++ trunk/lib/subroutines	2010-07-04 13:17:51 UTC (rev 5839)
@@ -385,8 +385,10 @@
 	rm $svar
     fi
     unset class svar
-    # now all variables are defined. Dump them to variables.log
+    # now all variables are defined. Dump them to variables.log, so we can sources them if needed
     set | perl -ne 'print if /^\w\w+=/ and not /^(EUID|PPID|SHELLOPTS|UID|rootpw|ROOTPW|HOME|PWD)|\(/' > $LOGDIR/variables.log
+    # another approach is to use this. A slightly different format, but seems to be robust.
+    # declare -x > $LOGDIR/variables.log
     cd $odir
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




More information about the Fai-commit mailing list