LocalHistory change

May 30, 2008
235
2
TCC 9,02.149 Windows XP [Version 5,1,2600]

It seems temporarily changing the LocalHistory directive does not have the expected effect.

C:\User>option localhistory
localhistory=No

C:\User>option //LocalHistory=Yes

C:\User>option localhistory
localhistory=Yes


After this I executed some commands in this and other tabs, I expected the history in this tab to remain unchanged when I executed commands in other tabs and that commands executed in this tab would not be included in the history of other tabs.

None of those assumptions held.

Is not this what changing the directive should do?

I use global lists for all shells together with SHRALIAS.

Also, if I start a new tab with the /LH switch the history stays local as expected.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
JP Software Forums" <neil@jpsoft.com>; "nikbackm wrote:
| TCC 9,02.149 Windows XP [Version 5,1,2600]
|
| It seems temporarily changing the LocalHistory directive does not
| have the expected effect.
|
| C:\User>option localhistory
| localhistory=No
|
| C:\User>option //LocalHistory=Yes
|
| C:\User>option localhistory
| localhistory=Yes
|
|
| After this I executed some commands in this and other tabs, I
| expected the history in this tab to remain unchanged when I executed
| commands in other tabs and that commands executed in this tab would
| not be included in the history of other tabs.
|
| None of those assumptions held.
|
| Is not this what changing the directive should do?
|
| I use global lists for all shells together with SHRALIAS.
|
| Also, if I start a new tab with the /LH switch the history stays
| local as expected.

History storage method is chosen at the time TCC is started. Changing it
during execution will affect only subsequent instances started from the
current instance.
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
nikbackm wrote:

> TCC 9,02.149 Windows XP [Version 5,1,2600]
>
> It seems temporarily changing the LocalHistory directive does not have
> the expected effect.
>
> C:\User>option localhistory
> localhistory=No
>
> C:\User>option //LocalHistory=Yes
>
> C:\User>option localhistory
> localhistory=Yes
>
>
> After this I executed some commands in this and other tabs, I expected
> the history in this tab to remain unchanged when I executed commands in
> other tabs and that commands executed in this tab would not be included
> in the history of other tabs.
>
> None of those assumptions held.
>
> Is not this what changing the directive should do?

The directive only affects new TCC tabs. If you want to toggle the
existing TCC between local & global history, use the HISTORY command
with the /G or /L options.

Rex Conn
JP Software
 
May 30, 2008
235
2
Thanks, don't know how I could have missed those! I never thought to check the HISTORY command for new switches.
 
Similar threads
Thread starter Title Forum Replies Date
R History window wrong size, can't remember size change Support 12
H Behavior change re piping a string to a Java program Support 1
Alpengreis [FORUM] After change the font, bold is without effect Support 7
R How to? Change TCMD tab font size in window menu Support 3
E How to change window title tcmd window - not tcc window Support 1
Alpengreis Small things to change in installer and after installed Everything Support 0
Charles Dye File completion change Support 11
T Change language in script Support 4
Jay Sage Change in Behavior of Activate Command Support 4
I Change value of a variable while debugging Support 3
T Change language after installation Support 4
WadeHatler Fixed Breaking change in Expression evaluation (.and.) in v17 Support 6
D Fixed Change in behavior of variable expansion between 16 and 17 Support 3
Peter Bratton Change in scrput behaviour Support 4
A How to? Can't change directory ("cd") into system hidden files Support 13
J Change folder TCC starts in Support 2
vefatica A small change Support 7
ehab aboudaya How to? change ALT-F6 to another key Support 1
S How to? Change thread prefix? Easy "create thread" method? Support 8
S Terminology change Support 2
Peter Bratton @ping behavior change Support 2
T signaling firstcondition and cannot change colors Support 8
newbie Change percent-sign to anything-else in filename Support 24
nikbackm Change format of DIR totals Support 3
Stefano Piccardi did the forum software change in the last two days? Support 2

Similar threads