Skip to content
Tcl Source Code History Of Ticket 1591407
Login

History Of Ticket 1591407

Artifacts Associated With Ticket 1591407

  1. Ticket change [17c53fd7ef] (rid 122554) by coldstore on 2006-11-06 14:46:19:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      [file tail ~fred/wilma] will return "wilma", but [file
      tail ~fred] will error, if there is no ~fred (that is,
      if the user fred does not exist.)
      
      It seems that when the terminal element of a file
      path/name is ~, it is expanded.
      
      I think that there's no good reason for [file tail] to
      have an existential interpretation, but that
      normalization of the path with a ~-element forces the
      existence to be tested implicitly and unintentionally.
      
      
    4. foundin initialized to: "obsolete: 8.5a5"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "coldstore"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "anomaly in [file tail] under ~ expansion"
    12. type initialized to: "Bug"
  2. Ticket change [fc2f84c5f8] (rid 108186) by dgp on 2006-11-07 04:36:41:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Did some testing in old
      Tcl releases and this behavior
      is not new.  Same happens
      in both 8.3.5 and 7.6p2.
      
      If this were to be "fixed",
      what would the correct behavior be?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "3 Low"
    5. username: "dgp"
  3. Ticket change [82cb77098b] (rid 117289) by coldstore on 2006-11-07 06:26:49:

    1. icomment:
      Logged In: YES 
      user_id=19214
      
      I believe the correct behaviour would be to return "~fred"
      to [file tail ~fred] when the user fred doesn't exist.
      
      I note another anomaly:  [file tail ~colin/wilma] returns
      "wilma" and [file tail ~colin] returns "colin" (being the
      tail of the expanded path.)
      
      It seems (from experiment, not looking at the source) that
      the expansion is intentionally performed iff the result of
      [file tail] yields a ~-form.  This is unexpected behavior,
      and inconsistent with such things as [file tail ~fred/..]
      and so, I believe, it should be removed as surprising and
      not particularly useful.
      
      Most people, I imagine, use [file tail] as a shorthand for
      [lindex [file split] end].  If they wanted expansion, they
      could use [file normalize].
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  4. Ticket change [9393a3e1cd] (rid 105843) by dgp on 2006-11-10 01:01:47:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      is there any connection
      between this and 858937?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [30c74afe41] (rid 93316) by dgp on 2009-10-02 02:04:54:

    1. assignee changed to: "dgp"