The OP (tue, 15 oct) was heavily modified by the author (wed, 23 oct) in an attempt at more normality in the discussion.
I am (re)considering the response I received to my original posting. I am of the opinion that it shouldn't be necessary to write an in-depth - technically and historically correct - analysis, just to make a suggestion. Since we don't have access to the source code we are always a step behind anyway. Frankly, I do not care why certain functionality exists. If existing functionality doesn't work, works differently than advertised or works in a counter-intuitive way, I think my contribution should be taken seriously and as friendly attempt to contribute to the quality of the product.
So, considering the current behavior of tcc.exe, when starting a shell (any kind), TCC executes the search for the default configuration file unless the /@... option is passed to tcc.exe. if the specified file does not exist, tcc initializes with the built-in default values and empties the envar _ininame. This silent failure can only be diagnosed by checking that single envar. I can see no reason why a user would *not* want to be warned if there is some problem with locating or accessing that pivotal configuration file. The resulting problems can be very time-consuming to diagnose.
Next, if the user starts a *secondary* shell, tcc re-executes the aforementioned search although a 'tried and tested' configuration file is already in use and its specification is in '_ininame'. If the user does not explicitly repeat the /@ option, tcc will silently revert to a default configuration file if one can be found, or to built-in values if one cannot. This seems counter-intuitive to me. There was very probably a good reason why the user took the trouble of specifying an alternate configuration. (E.g. the defaults don't exist, yet.) There is no reason to assume that this reason has disappeared.
I suggest that,
- tcc issues a warning when a configuration file cannot be found or accessed or is empty
- when starting secondary shells, TCC should reuse the primary's inifile and not re-execute the search
- there is ample room for improvement of the Help file to explain the inner workings of (sub)shell initialization.
The burden should be on the user to specify something only if they want to use an alternate configuration file, not merely to continue using one that is already in use.
I am (re)considering the response I received to my original posting. I am of the opinion that it shouldn't be necessary to write an in-depth - technically and historically correct - analysis, just to make a suggestion. Since we don't have access to the source code we are always a step behind anyway. Frankly, I do not care why certain functionality exists. If existing functionality doesn't work, works differently than advertised or works in a counter-intuitive way, I think my contribution should be taken seriously and as friendly attempt to contribute to the quality of the product.
So, considering the current behavior of tcc.exe, when starting a shell (any kind), TCC executes the search for the default configuration file unless the /@... option is passed to tcc.exe. if the specified file does not exist, tcc initializes with the built-in default values and empties the envar _ininame. This silent failure can only be diagnosed by checking that single envar. I can see no reason why a user would *not* want to be warned if there is some problem with locating or accessing that pivotal configuration file. The resulting problems can be very time-consuming to diagnose.
Next, if the user starts a *secondary* shell, tcc re-executes the aforementioned search although a 'tried and tested' configuration file is already in use and its specification is in '_ininame'. If the user does not explicitly repeat the /@ option, tcc will silently revert to a default configuration file if one can be found, or to built-in values if one cannot. This seems counter-intuitive to me. There was very probably a good reason why the user took the trouble of specifying an alternate configuration. (E.g. the defaults don't exist, yet.) There is no reason to assume that this reason has disappeared.
I suggest that,
- tcc issues a warning when a configuration file cannot be found or accessed or is empty
- when starting secondary shells, TCC should reuse the primary's inifile and not re-execute the search
- there is ample room for improvement of the Help file to explain the inner workings of (sub)shell initialization.
The burden should be on the user to specify something only if they want to use an alternate configuration file, not merely to continue using one that is already in use.
Last edited: