1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

LocalHistory change

Discussion in 'Support' started by nikbackm, Oct 27, 2008.

  1. nikbackm

    Joined:
    May 30, 2008
    Messages:
    194
    Likes Received:
    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. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
    nikbackm wrote:

    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
     
  4. nikbackm

    Joined:
    May 30, 2008
    Messages:
    194
    Likes Received:
    1
    Thanks, don't know how I could have missed those! I never thought to check the HISTORY command for new switches.
     

Share This Page