Changeset 603


Ignore:
Timestamp:
Jan 27, 2012, 4:47:18 PM (12 years ago)
Author:
rybkin
Message:

See C.L. 478

Location:
CMT/HEAD
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r600 r603  
     12012-01-27    <rybkin@lal.in2p3.fr> 478
     2
     3        * source/cmt_parser.cxx: In class Cmt function print_clean, use unset on
     4        set variables only to work around Z Shell unset builtin command being POSIX
     5        non-conformant (exit code of 1 on unset variables)
     6        * source/cmt_symbol.cxx: In class Symbol functions print_clean, print, idem
     7       
    182012-01-06    <rybkin@lal.in2p3.fr> 477
    29
  • CMT/HEAD/source/cmt_parser.cxx

    r599 r603  
    75027502      if (Me.m_current_package != "CMT")
    75037503        {
    7504           cout << "unset " << prefix << "ROOT" << endl;
    7505           cout << "unset " << prefix << "CONFIG" << endl;
     7504          cout << "[ -z ${" << prefix << "ROOT+CMT} ] || unset " << prefix << "ROOT" << endl;
     7505          cout << "[ -z ${" << prefix << "CONFIG+CMT} ] || unset " << prefix << "CONFIG" << endl;
     7506          //          cout << "unset " << prefix << "ROOT" << endl;
     7507          //          cout << "unset " << prefix << "CONFIG" << endl;
    75067508        }
    75077509      break;
     
    75407542              break;
    75417543            case Sh :
    7542               cout << "unset " << prefix << "ROOT" << endl;
    7543               cout << "unset " << prefix << "CONFIG" << endl;
     7544              cout << "[ -z ${" << prefix << "ROOT+CMT} ] || unset " << prefix << "ROOT" << endl;
     7545              cout << "[ -z ${" << prefix << "CONFIG+CMT} ] || unset " << prefix << "CONFIG" << endl;
     7546          //              cout << "unset " << prefix << "ROOT" << endl;
     7547          //              cout << "unset " << prefix << "CONFIG" << endl;
    75447548              break;
    75457549            case Bat :
     
    75577561      break;
    75587562    case Sh :
    7559       cout << "unset CMTEXTRATAGS" << endl;
     7563      cout << "[ -z ${CMTEXTRATAGS+CMT} ] || unset CMTEXTRATAGS" << endl;
     7564              //      cout << "unset CMTEXTRATAGS" << endl;
    75607565      break;
    75617566    case Bat :
  • CMT/HEAD/source/cmt_symbol.cxx

    r599 r603  
    16411641          break;
    16421642        case Sh :
    1643           cout << "unset " << _name;
     1643          cout << "[ -z ${" << _name << "+CMT} ] || unset " << _name;
     1644          //          cout << "unset " << _name;
    16441645          result = 1;
    16451646          break;
     
    16581659            break;
    16591660          case Sh :
    1660             cout << "unset " << name;
     1661            cout << "[ -z ${" << name << "+CMT} ] || unset " << name;
     1662          //            cout << "unset " << name;
    16611663            result = 1;
    16621664            break;
     
    17531755              break;
    17541756            case Sh :
    1755               if (empty) cout << "unset " << _name;
     1757              if (empty) cout << "[ -z ${" << _name << "+CMT} ] || unset " << _name;
     1758              //              if (empty) cout << "unset " << _name;
    17561759              else cout << _name << "=\"" << temp << "\"; export " << _name;
    17571760              //else cout << name << "=" << CmtSystem::quote (temp, " \t") << "; export " << name;
Note: See TracChangeset for help on using the changeset viewer.