Welcome!

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

SignUp Now!

LocalHistory change

May
238
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.
 
JP Software Forums" <[email protected]>; "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
 
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
 
Thanks, don't know how I could have missed those! I never thought to check the HISTORY command for new switches.
 

Similar threads

Back
Top