[Fai-commit] r3872 - trunk/lib
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Wed Sep 6 09:22:02 UTC 2006
Author: lange
Date: 2006-09-06 09:22:01 +0000 (Wed, 06 Sep 2006)
New Revision: 3872
Modified:
trunk/lib/subroutines
Log:
use perl instead of egrep
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2006-09-06 09:19:20 UTC (rev 3871)
+++ trunk/lib/subroutines 2006-09-06 09:22:01 UTC (rev 3872)
@@ -348,7 +348,7 @@
fi
unset class svar
# now all variables are defined. Dump them to variables.sh
- set | perl -ne 'print if /^\w\w+=/' | egrep -v "^BASH_VERSINFO|^EUID|^PPID|^SHELLOPTS|^UID|^rootpw|^ROOTPW|^HOME|^PWD" > $LOGDIR/variables.sh
+ set | perl -ne 'print if /^\w\w+=/ and not /^(BASH_VERSINFO|EUID|PPID|SHELLOPTS|UID|rootpw|ROOTPW|HOME|PWD)/' > $LOGDIR/variables.sh
cd /
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
More information about the Fai-commit
mailing list