LocalHistory change

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
May 30, 2008
206
1
#1
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.
 
#2
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
10,101
85
#3
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
206
1
#4
Thanks, don't know how I could have missed those! I never thought to check the HISTORY command for new switches.