diff options
Diffstat (limited to 'doc/tclsh.1')
| -rw-r--r-- | doc/tclsh.1 | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/tclsh.1 b/doc/tclsh.1 index c75076f..894b21e 100644 --- a/doc/tclsh.1 +++ b/doc/tclsh.1 @@ -156,15 +156,19 @@ incomplete commands. .SH "STANDARD CHANNELS" .PP See \fBTcl_StandardChannels\fR for more explanations. -.SH ZIPVFS +.SH "ZIPFS VIRTUAL FILE SYSTEM" .PP When a zipfile is concatenated to the end of a \fBtclsh\fR, on startup -the contents of the zip archive will be mounted under the virtual file -system \fB//zipfs:/\fR. If a top level directory \fBtcl_library\fR is +the contents of the zip archive will be mounted under a virtual file +system (VFS). The root of that VFS can be retrieved using the \fBzipfs root\fR +command. The zip archive is mounted under the \fBapp\fR directory within the +VFS. If a file named \fBmain.tcl\fR is present in the top +level directory of the zip archive, it will be sourced instead of +tclsh's normal command line handing. 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. +env(TCL_LIBRARY). If the file \fBtcl_library/init.tcl\fR is present in the zip +archive, the \fBtcl_library\fR global variable in the initial Tcl interpreter +is set to \fBapp/tcl_library\fR. .PP Only one zipfile can be concatenated to the end of executable image (tclsh, or wish). However, if multiple zipfiles are |
