Tcl Source Code

Check-in [6a6dac423f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:resolution of ticket [75291b89b3]
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | zipfs-consolidation
Files: files | file ages | folders
SHA3-256: 6a6dac423f147a85a92e40b72f90dcdb164d9016d23d678b830cd29f9638fd73
User & Date: Torsten 2024-08-06 06:36:41.274
References
2024-08-06
06:38 Ticket [75291b89b3] Documentation of zipfs in tclsh(1) status still Open with 3 other changes artifact: f15b975a2c user: tberg
Context
2024-08-12
09:54
Merged trunk check-in: 0cb4d36e48 user: apnadkarni tags: zipfs-consolidation
2024-08-06
06:36
resolution of ticket [75291b89b3] check-in: 6a6dac423f user: Torsten tags: zipfs-consolidation
06:20
resolution of ticket [7db9574a06] check-in: d97273f74c user: Torsten tags: zipfs-consolidation
Changes
Unified Diff Ignore Whitespace Patch
Changes to doc/tclsh.1.
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
The variable \fBtcl_prompt2\fR is used in a similar way when
a newline is typed but the current command is not yet complete;
if \fBtcl_prompt2\fR is not set then no prompt is output for
incomplete commands.
.SH "STANDARD CHANNELS"
.PP
See \fBTcl_StandardChannels\fR for more explanations.
.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 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 the
shell'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 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







|






|
|







152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
The variable \fBtcl_prompt2\fR is used in a similar way when
a newline is typed but the current command is not yet complete;
if \fBtcl_prompt2\fR is not set then no prompt is output for
incomplete commands.
.SH "STANDARD CHANNELS"
.PP
See \fBTcl_StandardChannels\fR for more explanations.
.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 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 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