Skip to content
Tcl Source Code History Of Ticket 535621ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 535621ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 535621ffffffffffffffffffffffffffffffffff

  1. Ticket change [60e65b5009] (rid 92149) by dgp on 2002-03-27 08:00:10:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The normalizedPath cached inside a "pathPtr" object
      needs to be invalidated when the raw string form
      of the path starts with ~ and the value of ::env(HOME)
      changes.  Here's a demo session of the problem:
      
      First, the working code in 8.3:
      
      % info patch
      8.3.4
      % proc test {} {
          set ::env(HOME) /home/dgp
          puts "Parent of $::env(HOME)"
          catch {file dirname ~} parent
          puts "is $parent"
          set ::env(HOME) /usr/local/src
          puts "Parent of $::env(HOME)"
          catch {file dirname ~} parent
          puts "is $parent"
      }
      % test
      Parent of /home/dgp
      is /home
      Parent of /usr/local/src
      is /usr/local
      
      Compare with the broken 8.4:
      
      % info patch
      8.4a5
      % proc test {} {
          set ::env(HOME) /home/dgp
          puts "Parent of $::env(HOME)"
          catch {file dirname ~} parent
          puts "is $parent"
          set ::env(HOME) /usr/local/src
          puts "Parent of $::env(HOME)"
          catch {file dirname ~} parent
      % test
      Parent of /home/dgp
      is /home
      Parent of /usr/local/src
      is /home
      
      
    4. foundin initialized to: "obsolete: 8.4a5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "clear ~ cache when ::env(HOME) changes"
    11. type initialized to: "Bug"
  2. Ticket change [997afc5578] (rid 110804) by nobody on 2002-03-27 16:59:18:

    1. icomment:
      Logged In: NO 
      
      Ah!  Interesting -- I didn't think of that.  Fortunately 
      there's a method in place to invalidate the cache, so it 
      just needs calling when env(HOME) changes.  Calling
      
      Tcl_FSMountsChanged(NULL);
      
      will do the trick.  Unfortunately I'm travelling for the 
      next week so can't make a patch.
      
      
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [a2a5bbfe52] (rid 109932) by vincentdarley on 2002-04-03 15:35:59:

    1. status changed to: "Closed"
  4. Ticket change [37b70d1ad8] (rid 112077) by vincentdarley on 2002-04-03 15:36:00:

    1. closedate changed to: "2002-04-03T08:36:00"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      Applying patch to fix this problem.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. username: "vincentdarley"
  5. Ticket change [8640625bf9] (rid 131468) by vincentdarley on 2002-04-03 15:40:58:

    1. closedate changed to: "2002-04-03T08:40:58"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      We should also add a test to fileSystem.test to check the 
      fixed behaviour.
      
      Vince.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. username: "vincentdarley"
  6. Ticket change [89d9ce3b5b] (rid 127291) by dgp on 2002-04-03 21:14:41:

    1. closedate changed to: "2002-04-03T14:14:41"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      Actually it was a failure in test cmdAH-8.44 that
      lead me to the bug.
      
      A more reliable test would be a good idea though.
      cmdAH-8.44 only started failing after I updated
      the tcltest package, and only when doing
      
         make test TESTFLAGS="-singleproc 1"
      
      According to that test, and the test case in the
      report, the fix is effective.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. username: "dgp"