Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by David McClelland

  1. David McClelland

    Command history loosing entries

    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...
  2. David McClelland

    Command history loosing entries

    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"...
  3. David McClelland

    Command history loosing entries

    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...
  4. David McClelland

    Command history loosing entries

    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...
  5. David McClelland

    Command history loosing entries

    I tried your suggestion: 1) Added %SHRALIAS_SAVE_PATH to my environment variables 2) Added "SHRALIAS"
  6. David McClelland

    Command history loosing entries

    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...
  7. David McClelland

    Command history loosing entries

    I forgot: I am using version 24.02 of TCMD
  8. David McClelland

    Command history loosing entries

    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...
  9. David McClelland

    Command history loosing entries

    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...
  10. David McClelland

    TCMD 24 & Perl - perl thinks it's own executable is ...\TCMD24\TCC.EXE???

    OK. Thanks for the quick reply. That solves my confusion. David
  11. David McClelland

    TCMD 24 & Perl - perl thinks it's own executable is ...\TCMD24\TCC.EXE???

    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"; } }...
  12. David McClelland

    TEE command puts it's output file in c:\

    That was my problem. Thanks for your insight.
  13. David McClelland

    TEE command puts it's output file in c:\

    Thanks but no, that wasn't the problem. I just re-ran the test to verify and the file appeared in C:\ as soon as the command was issued.
  14. David McClelland

    TEE command puts it's output file in c:\

    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]...
  15. David McClelland

    How to? Path Changes

    Thanks so much. That is my problem. David
Back
Top