|
2008-06-17
| ||
| 23:04 | • Closed ticket [1996158fff]: bad naming of ..TM_PATH variables plus 9 other c... artifact: b8eca0a805 user: andreas_kupries | |
| 14:15 | • New ticket [1996158fff]. artifact: 27e685f6fd user: nobody | |
bad naming of ..TM_PATH variables
Closed / Duplicate1996158fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-06-17 14:15:33
The tcl module implementation encourages to use environment variables like TCL8.5_TM_PATH. Unfortunately, the naming of variable names in the "bourne again shell" (bash) is limited to alpahnumeric characters, including '_'. Attempts to assign values to a variable with a name containing a dot-character, as requested by the "tcl module" functionality, fails if the assignment is done by a shell command, like export TCL8.5_TM_PATH=/home/xx/my_modules I consider this a severe bug for all those who are going to prefer the "tcl module" approach when looking up for packages. Proposal: --------- Use '_' instead of '.', i.e. say TCL8_5_TM_PATH instead of TCL8.5_TM_MODULE. Possibly that needs only a change of one line in file tm.tcl and some editing of the documentation.
andreas_kupriesplain2008-06-17 23:04:36
Logged In: YES user_id=75003 Originator: NO This looks very much a duplicate of [1914604], i.e. http://sourceforge.net/tracker/index.php?func=detail&aid=1914604&group_id=10894&atid=110894 Which has been accepted already and was committed to Tcl 8.5 on Mar 18, 2008. The code accepts both forms of the variables, i.e. TCL8.5_TM_PATH, and TCL8_5_TM_PATH, etc. The documentation doesn't seem to be up to date however, agreed. Closing nevertheless, any changes to the documentation will be tracked in the original report, see above for the reference.
Log in (anonymous is fine) to add a comment.