Ok. I guess we have spent enough time on this. I have changed my TCC options to use local lists. The reason I was using global ones is that I usually have two or more tabs running under tcmd and I wanted to share the command history between those tabs but I can live with local lists.
As for...
I modified my test program (t_cmdhistory.pl) to select the method of call by the input argument: 1 = back tics, 2=system() and 3=back tics but executes a dos command, namely echo. Here is the program:
my $arg=shift//1;
if ($arg == 1) {
print "Using back-tics:\n"...
So I simplified things. I wrote a test perl program called t_cmdhistory.pl containing one statement:
`c:\\testpad\\installedapps\\t_bat1.bat`;
The t_bat1.bat file is:
@echo This is t_btm1.btm
pause
exit
I checked my command history and then executed t_cmdhistory.pl
When I re-checked...
Oops. Ignore that last post.
I tried your suggestion:
1) Added %SHRALIAS_SAVE_PATH to my environment variables
2) Added "SHRALIAS" to my TCStart.btm
3) Stopped and restarted TCMD
4) Navigated to where my perlpgm.pl was
5) Checked to see that my navigation commands where in the command history...
You are right. I changed the bat file to add a pause and then used the SysInternals ProcExp to look at the command line of that window. It was "tcc.exe /K batfile.bat" as you said.
So what is triggering TCC #1 to reload the command history from the "user/TCC-Command-History.txt" file?
Note...
To answer your question:
1) TCC Options dialog->Command Line->History file=C:\Users\user-name\TCC-Command-History.txt
2) My TCMD/TCC window is started from the Windows start menu.
3) From that window/tab I invoke the perlpgm.pl which then invokes TCC with the /I option which is documented as...
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...
I wrote a small perl program to display what perl thinks is it's executable ($^X variable) and what is in the @INC array. This program is called testbegin.pl:
BEGIN {
print "Perl executable: $^X\n";
print "Contents of \@INC:\n";
foreach my $x (@INC) {
print "$x\n";
}
}...
I brought up a new tab and entered
[C:\]d:\Junk\
[D:\Junk]echo A line | tee teetest.txt
A line
The file teetest.txt was not in d:\Junk but I found it in c:\
Shouldn't it be in the current directory? Or am I missing something.
I am running:
TCC 21.01.53 x64 Windows 10 [Version 10.0.15063]...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.