1.1 --- a/scripts/functions Mon Jul 30 20:02:13 2007 +0000
1.2 +++ b/scripts/functions Sun Aug 12 08:43:56 2007 +0000
1.3 @@ -552,14 +552,12 @@
1.4
1.5 CT_DoLog DEBUG " Saving environment and aliases"
1.6 # We must omit shell functions
1.7 - # 'isgrep' is here because I don't seem to
1.8 - # be able to remove the functions names.
1.9 set |awk '
1.10 BEGIN { _p = 1; }
1.11 - $0~/^[^ ] ()/ { _p = 0; }
1.12 + $0~/^[^ ]+ \(\)/ { _p = 0; }
1.13 _p == 1
1.14 $0 == "}" { _p = 1; }
1.15 - ' |egrep -v '^[^ ]+ \(\)' >"${state_dir}/env.sh"
1.16 + ' >"${state_dir}/env.sh"
1.17
1.18 CT_DoLog DEBUG " Saving CT_CC_CORE_STATIC_PREFIX_DIR=\"${CT_CC_CORE_STATIC_PREFIX_DIR}\""
1.19 CT_Pushd "${CT_CC_CORE_STATIC_PREFIX_DIR}"