Skip to content
Tcl Source Code History Of Ticket 43b7e5b511
Login

History Of Ticket 43b7e5b511

Artifacts Associated With Ticket 43b7e5b511

  1. Ticket change [8bca4e3665] (rid 226547) by apnadkarni on 2024-05-23 16:34:39:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      The 9.0 tclsh manpage has a section **ZIPFS** which describes tclsh behavior when a zip archive is attached to it (note this is different from the tcl library zip archive attached to the tcl **shared library**). Aside from the obvious errors (mount point and Tcl version) in the description, I cannot get that behavior to work at all. Also not clear to me from the code how it would have ever worked but I could be looking in the wrong place.
      
      Logging this ticket as a place holder pending further investigation.
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "69. Other"
    15. title initialized to: "tclsh with attached ZIP"
    16. type initialized to: "Bug"
  2. Ticket change [c5ac0f2711] (rid 226548) by griffin on 2024-05-23 19:51:21:

    1. icomment:
      The description is old; /zvfs is actuall //zipfs:/
      
          # "file volumes" will report the root(s) to follow. 
          # If there is an attached archive, //zipfs:/ will be present.
          % file volumes
          //zipfs:/ /
      
      The auto_path variable is also informative:
      
          % set auto_path
          //zipfs:/app/tcl_library //zipfs:/app 
      
      I've been creating stand-alone applications for awhile now by adding "main.tcl" to the archive and rewriting it using zipfs mkimg.  See [makeapp.tcl](https://chiselapp.com/user/griffin/repository/DeDuper/file?name=makeapp.tcl&ci=f520ddbc99a0799d39458c321e77fd17af22ce070c5a69b1b88781779361ab56) for an example.
      
      So, this section of the man page needs to be rewritten.
      
    2. login: "griffin"
    3. mimetype: "text/x-markdown"
  3. Ticket change [fdaa98fd63] (rid 226551) by apnadkarni on 2024-05-24 06:00:30:

    1. icomment:
      Brian,
      
      I knew about the outdated paths but still could not get it to work.
      
      If I read your code correctly, you are explicitly copying the tcl_library content into your vfs as part of the package copies from auto_path. Is that correct?
      
      In other words, when using a static shell, `zipfs mkimg` will overwrite the existing zip archive thereby losing the `tcl_library` content from the static executable. That is what my 7zip dump shows and would explain the failures to run.
      
      If that is the case, the documentation should warn or explain as much as I don't think it is obvious except in hindsight.
      
      /Ashok
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  4. Ticket change [30f9cefce1] (rid 226601) by griffin on 2024-05-24 16:38:12:

    1. icomment:
      How is this as a rewrite:
      
      .SH ZIPVFS
      .PP
      When a zipfile is concatenated to the end of a \fBtclsh\fR, on startup
      the contents of the zip archive will be mounted as the virtual file
      system \fB//zipfs:/\fR. If a top level directory \fBtcl_library\fR is
      present in the zip archive, it will become the directory loaded as
      env(TCL_LIBRARY). If a file named \fBmain.tcl\fR is present in the top
      level directory of the zip archive, it will be sourced instead of the
      shell's normal command line handing.
      .PP
      Only one zipfile can be concatenated to the end of executable image
      (tclsh, or wish). However, if multiple zipfiles are
      concatenated, only the last one is used.
      
      This filesystem is read-only. Files cannot be added or modified within
      this mounted file system.  See zipfs(n) for complete details.
      
      .SH "SEE ALSO"
      auto_path(n), encoding(n), env(n), fconfigure(n), zipfs(n)
      .SH KEYWORDS
      application, argument, interpreter, prompt, script file, shell, zipfs
      
    2. login: "griffin"
    3. mimetype: "text/plain"
  5. Ticket change [06a042bd3d] (rid 226603) by apnadkarni on 2024-05-24 16:49:39:

    1. icomment:
      Reads much better. The one thing I would change is "mounted as the virtual file system..." to "mounted under the virtual file system" because I think it depends on how tclsh is built. For example, in my default Windows build,
      
      ```
      % set tcl_library
      //zipfs:/lib/tcl/tcl_library
      % zipfs mount
      //zipfs:/lib/tcl D:/tcl/90/x64-debug/bin/tcl90.dll
      ```
      
      so the mount point is not directly at //zipfs:/. Bit of nitpicking...
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  6. Ticket change [82f8026d83] (rid 226606) by griffin on 2024-05-24 17:58:44:

    1. icomment:
      see [bug-43b7e5b511](https://core.tcl-lang.org/tcl/timeline?r=bug-43b7e5b511&c=2024-05-24+17%3A50%3A38) for proposed improvement for this ticket.
      
      Also, there is currently nothing in the wish man page that mentions zipfs, but this issue applies there too, no?
      
    2. login: "griffin"
    3. mimetype: "text/x-markdown"
  7. Ticket change [8ce6cbba64] (rid 226629) by apnadkarni on 2024-05-25 01:10:11:

    1. icomment:
      Good question. I am not sure if wish supports the functionality but if it does, clearly it should be documented.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  8. Ticket change [315492ceb7] (rid 226768) by griffin on 2024-05-27 16:39:48:

    1. assignee changed to: "griffin"
    2. closedate changed to: "2460458.19431185"
    3. closer changed to: "griffin"
    4. icomment:
      Tcl and Tk documentation improved with Tk:[c3289584177] and Tcl:[5977456ad3] to address this reported concern.
      
    5. login: "griffin"
    6. mimetype: "text/x-fossil-plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"