Hi.
Summary: When in TCC, invoking a perl program that invokes TCC will results in the command history buffer in the original TCC session being reloaded from the "user/TCC-Command-History.txt" file.
Convoluted, I know, but:
I have a perl program that invokes tcc via:
`tcc /I /L /Q /H /C start /elevated $batfile`
The program works, no problem there. Note the /L option which is supposed to use local command history (as well as other list).
Now I invoke tcmd (which has no local lists checked - ie uses global lists) and type in a couple of nonsense commands like:
asfdadf
xcvzzxcv
For each I get the expected 'unknown command' message. I then hit pgdown and see these command are in the command history as expected.
I then invoke the perl program. It runs and at this point I expect to have a command history looking like:
...previous commands from previous sessions...
asfdadf
xcvzzxcv
perlpgm.pl
Instead when I hit PgDown all I see is:
...previous commands from previous sessions...
I have lost the commands I have entered into this session of TCMD/TCC. In fact it appears that my command history has been reloaded from home/TCC-Command-History.txt as a result of running my perlpgm.pl
I had assumed that by invoking TCC with the /L option I would not effect my (global) command history in my current TCMD session.
Further testing shows that if I invoke the perl program via a start command my command history is as I expected - ie:
after invoking 'start perlpgm.pl' my command history is:
...previous commands from previous sessions...
asfdadf
xcvzzxcv
start perlpgm.pl
This appears to be a bug or at least not what I expected.
David
Summary: When in TCC, invoking a perl program that invokes TCC will results in the command history buffer in the original TCC session being reloaded from the "user/TCC-Command-History.txt" file.
Convoluted, I know, but:
I have a perl program that invokes tcc via:
`tcc /I /L /Q /H /C start /elevated $batfile`
The program works, no problem there. Note the /L option which is supposed to use local command history (as well as other list).
Now I invoke tcmd (which has no local lists checked - ie uses global lists) and type in a couple of nonsense commands like:
asfdadf
xcvzzxcv
For each I get the expected 'unknown command' message. I then hit pgdown and see these command are in the command history as expected.
I then invoke the perl program. It runs and at this point I expect to have a command history looking like:
...previous commands from previous sessions...
asfdadf
xcvzzxcv
perlpgm.pl
Instead when I hit PgDown all I see is:
...previous commands from previous sessions...
I have lost the commands I have entered into this session of TCMD/TCC. In fact it appears that my command history has been reloaded from home/TCC-Command-History.txt as a result of running my perlpgm.pl
I had assumed that by invoking TCC with the /L option I would not effect my (global) command history in my current TCMD session.
Further testing shows that if I invoke the perl program via a start command my command history is as I expected - ie:
after invoking 'start perlpgm.pl' my command history is:
...previous commands from previous sessions...
asfdadf
xcvzzxcv
start perlpgm.pl
This appears to be a bug or at least not what I expected.
David