Fix saving the environment. Thanks to Mark Vels <Mark.Vels@fundem.net> for pointed it out!
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Aug 12 08:43:56 2007 +0000 (2007-08-12)
changeset 3267344f3cc38fa
parent 325 58e56ab91bd0
child 327 e016b216eca7
Fix saving the environment. Thanks to Mark Vels <Mark.Vels@fundem.net> for pointed it out!
scripts/functions
     1.1 --- a/scripts/functions	Sun Aug 12 08:05:57 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}"