[ET Trac] [Einstein Toolkit] #236: GetComponents should abort on undefined variables

Einstein Toolkit trac-noreply at einsteintoolkit.org
Wed Feb 2 22:30:10 CST 2011

#236: GetComponents should abort on undefined variables
  Reporter:  knarf          |       Owner:  eric9   
      Type:  defect         |      Status:  accepted
  Priority:  minor          |   Milestone:          
 Component:  GetComponents  |     Version:          
Resolution:                 |    Keywords:          

Comment (by knarf):

 I don't think that anyone would choose directory names starting with '$',
 however, if possible I wouldn't make it impossible to use them. In
 addition, someone could actually try to use an environment variable. Could
 GetComponents do this: produce a warning/error if an undefined $VAR is
 detected _and_ no environment variable of that name is defined. If an env-
 variable is defined: let the shell deal with it. Otherwise error out
 because the use of a simple, unescaped '$' without a CRL definition or an
 environment variable has to be a mistake and would not work in any case. I
 would then make '$' escapeable by '\$', or single quotes.

Ticket URL: <https://trac.einsteintoolkit.org/ticket/236#comment:4>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit

More information about the Trac mailing list