History and TPipe Oddness

Jun 6, 2009
Sorry for the long message. I've been using TakeCommand for many years now, but lately I'm seeing some weird behavior with history, recall (up arrow) and tpipe.

On the Command Line options tab, I have checked [Move to End] and selected the [Save Last] radio button under Command History.
I have also specified a location for history2.log.

I started with a clean history file and ran the following commands (note: NB. is followed by a comment).

> tcc: NB. Alias for my local TCC config folder.
> type somefile.txt
> history NB. The above two commands are displayed as expected.
> tcc:
> type somefile.txt
> history NB. Everything displays normally and no duplicates commands are displayed.

Now the weirdness starts.

> type somefile.txt | tpipe /dup=0,0,1,100,0,0 NB. Remove duplicate lines from somefile.txt and it works as expected.

But now the history is all screwed up. In particular, duplicates have reappeared. Also, the tpipe line does not show up when I try the up arrow.

To make matters worse, a copy of TakeCommand seems to persists in memory after I exit. At least, that's what the Task Manager says. I can tell that something funny is going on because my laptop (a brand new Dell Precision Workstation) starts to heat up.

After I make sure that TakeCommand is no longer running and restart the shell, I check the history and confirm that duplicates have reappeared. Now if I repeat a command and check the history, once again duplicates are correctly removed. In fact, as long as I avoid the command that includes tpipe above, everything works as expected. And exiting TakeCommand causes no problems.

I see the same problems if I replace problematic command above with
> tpipe /input=somefile.txt /dup=0,0,1,100,0,0

Is there a problem with tpipe?

Jun 6, 2009
I have attached the relevant options screen shots regarding local versus global history but I think I'm using a global history list.

I am not using a TCEXIT file. Here is my TCSTART.btm file:
@echo off
::Ignore this file if we are in a pipe or a transient session.
if %_pipe != 0 quit

alias /r "C:\Users\15173\Documents\tcc\alias.ini"

::Do not save the following commands in the history file.
SET HistoryExclude=h;exit;help;history;texdoc;cls;ppath;dir;cd;*cdd

::Shorter prompt `C:\...\current directory'
prompt $w$g



  • TCC_StartupOptions.jpg
    70.7 KB · Views: 110
  • TCC_CommLineOptions.png
    34.7 KB · Views: 112
Jun 6, 2009
I was unable to reproduce this behavior on my office machine which has a similar configuration. Would a complete TakeCommand reinstall on my home machine be advisable?

Similar threads
Thread starter Title Forum Replies Date
J History file load hangs if file has complete garbage in it... Support 1
R History window wrong size, can't remember size change Support 12
T How to? retain command history across reboot? Support 6
nikbackm Speeding up the history dialog Support 6
D ParentDirectory does not update directory history Support 6
vefatica Command history search is off Support 7
D Directory History Window with wildcard search Support 3
R Long commands retrieved from command history have blank line when wrapped Support 20
Joe Caverly @HISTORY issues Support 4
vefatica Deleting entries in the command history popup? Support 3
D History and control-C Support 1
G Console exe up / down history Support 8
D What does the file "..\Everything\Run history.csv" store? Support 5
rps Cmd history recall Support 4
David McClelland Command history loosing entries Support 18
R history features. Support 6
rps How to? Shralias and producing history.sav, alias.sav .. Support 6
M Ctrl-C when using command line history does nothing Support 2
S Debugger Bat file call history Support 9
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
vefatica ESC after recalling a command from history Support 3
T TCHelp executable history? Support 2
thorntonpg @blahblah added to history. Support 0
M Call History popup-window? Support 0
M HISTORY lessons ... Support 0
vefatica The help and IE's history Support 16
D Towards shared (dir-)history lists Support 3
vefatica Ctrl-Enter in command history window? Support 8
vefatica History recall turns off Quick-Edit Support 4
C history is getting deleted under unknown circumstances Support 9
R V19 - At startup, TCC save directory in the directory history list Support 2
T [TCC 18] Can't read nor write history Support 1
I Possible Bug: History /n Returns Nothing Support 3
jbanaszczyk Lost history Support 4
T history.sav Support 4
T How to? sort history in tcexit.btm Support 22
vefatica OT: Windows console history? Support 7
S directory history locks up TCC Support 3
R In addition to ALIAS /Z and FUNCTION /Z, HISTORY /Z? Support 1
E TCC History popups too small Support 0
C How to? Keeping all history lists Support 4
E Command History not showing on up arrow button Support 8
nikbackm HISTORY /R1 performance Support 3
T Selecting line from popup history without executing Support 8
A How to? Filter history list with unicode chars Support 0
vefatica WAD HISTORY /R, No closing quote? Support 10
vefatica WAD DO /S ... all dirs wind up in the history! Support 12
D Dir History file check Support 18
ehab aboudaya How to? Command Input history for each tab? Support 0
A Ctrl-1 and the command history Support 5

Similar threads