Skip to content
Tcl Source Code Artifact [093454c956]
Login

Artifact [093454c956]

Artifact 093454c956ec2841d5f3c80b8c9e3da54495832fd314bcfbb280d4ef9bb4a1fd:

Ticket change [093454c956] - New ticket [b9f3ff8fe69cae04|b9f3ff8fe6] <i>Errors/ambiguities in zipfs(n) manual page</i>. by tberg on 2024-07-30 07:11:56.
D 2024-07-30T07:11:56.666
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment Here\sare\ssome\spoints\swhich\sI\sthink\sshould\sbe\sfixed\sin\sthe\szipfs(n)\smanual\spage.\sAs\sI\sam\snot\stotally\ssure\sabout\sthem,\sthis\sticket\sasks\sfor\scomments\sbefore\sI\sjust\schange\sthe\smanual\spage.\r\n\r\n##\s1.\srequiring\sthe\spackage\r\nThe\smanual\spage\sindicates\sto\suse\r\n\r\n```\r\npackage\srequire\stcl::zipfs\s?1.0?\r\n```\r\n\r\n\r\nin\sorder\sto\suse\sthe\szipfs\scommands.\sIn\sa\snormal\sTcl9.0b3\sinterpreter,\syou\scan\sjust\suse\sthe\scommands\swithout\sthis\sline.\sI\sbelieve\sthis\sfact\sshould\sbe\sdocumented\sor\srather\sit\sshould\sbe\sdocumented\sunder\swhich\scircumstances\sthe\sline\sis\sneeded.\sThe\ssource\scode\sof\szipfs\sdoes\snot\sgive\sme\sany\sindication\sof\swhen\sthe\sline\swould\sbe\sneeded.\s(This\sis\sactually\strue\sfor\sother\spackages\sas\swell,\smsgcat\se.g.).\r\n\r\n##\s2.\spackage\sversion\r\nThe\smanual\spage\sstates\sthe\sversion\sis\s1.0,\sthe\s[zipfs.c\ssource](https://core.tcl-lang.org/tcl/file?name=generic/tclZipfs.c&ci=c971e6c7c4&ln=6270)\sdoes:\r\n\r\n```\r\nTcl_PkgProvide(interp,\s"tcl::zipfs",\s"2.0");\r\n```\r\n\r\nShouldn't\sthe\sdocumentation\sbe\sbrought\sin\sline\swith\sthe\simplementation\sor\sis\sversion\s2.0\swrong\sas\sthis\sis\sa\snew\spackage\sand\ssome\saspects\sare\seven\sdeclared\sexperimental?\sBy\sthe\sway,\sthe\szipfs.test\sfile\shas\sa\stest\sand\salso\sexpects\s"2.0"\sas\sresult.\r\n\r\n##\s3.\szipfs\smount\spoint\r\nThe\smanual\spage\ssays\sthe\smount\spoint\sfor\szipfs\svolumes\sis\sā€œ//zipfs:/ā€\s**on\smost\splatforms**.\sThis\sis\sa\sbit\stoo\sloosely\sdocumented\sas\sit\sleaves\sthe\suser\swith\sthe\sburden\sto\sfind\sout\s(using\s`zipfs\sroot`).\sHowever,\sI\scannot\sfind\sany\sindication\sin\sthe\ssource\scode\sof\sthe\smount\spoint\sbeing\splatform-dependent.\sIt\sjust\ssays\s[in\sline\s89](https://core.tcl-lang.org/tcl/file?name=generic/tclZipfs.c&ci=c971e6c7c4&ln=89):\r\n\r\n\s\s\s#define\sZIPFS_VOLUME\t\s\s"//zipfs:/"\r\n\r\nAm\sI\scorrect\sthat\sthe\smount\spoint\sis\sactually\splatform-independent\sand\salways\sthe\ssame?\sIf\strue,\sthis\sneeds\sfixed\sin\sthe\sdocumentation.\sIf\sthis\sis\snot\sthe\scase,\sthe\svarious\spossible\smount\spoints\sand\sthe\splatforms\sfor\swhich\sthey\sapply\sshould\sbe\slisted.\r\n\r\n##\s4.\szipfs\smkimg\ssyntax\r\nThe\s[zipfs\smkimg]\ssyntax\sis\sspecified\slike\sthis:\r\n\r\n```\r\nzipfs\smkimg\soutfile\sindir\s?strip?\s?password?\s?infile?\r\n```\r\n\r\nThis\sindicates\sone\scould\sleave\sout\sany\sof\sthe\sthree\soptional\sparameters\sand\s`zipfs`\swould\sfigure\sout\swhat\sis\smeant.\sThis\sis\snot\strue.\sThe\ssyntax\srather\shas\sfour\sdifferent\sforms:\r\n\r\n```\r\nzipfs\smkimg\soutfile\sindir\r\nzipfs\smkimg\soutfile\sindir\sstrip\r\nzipfs\smkimg\soutfile\sindir\sstrip\spassword\r\nzipfs\smkimg\soutfile\sindir\sstrip\spassword\sinfile\r\n```\r\n\r\nSo,\se.g.,\syou\scannot\sreally\sskip\s`?strip?`\sand\sthen\sspecify\s`?password?`\sonly.\sWhen\sI\smisunderstand\sthe\sway\ssuch\ssyntax\sis\sto\sbe\sread,\sthen\sI\spropose\swe\sneed\sa\sseparate\smanual\spage\sexplaining\show\sto\sread\sTcl\ssyntax\sin\sgeneral\s(it\swould\sbe\sgood\spractice\sanyway).\r\n\r\nIf\sI\sunderstand\scorrect,\sit\sis\snot\spossible\sto\screate\san\sunstripped\simage\swith\sa\spassword.\sAt\sleast,\sthis\sis\snot\sdocumented.\sIs\smy\simpression\strue?\sOf\scourse,\sI\scan\salways\sprovide\sempty\sstrings\sfor\sthe\sparameters\sI\sdon't\scare\sabout\sbut\swhat\shappens\sthen\sis\snot\sexplicitly\sdocumented\sfor\s`?strip?`.\sI\swould\sthus\srather\shave\sthe\ssyntax\sdocumented\sas\swritten\sabove\sinstead\sof\swith\sthree\soptional\sparameters\sthat\sare\snot\soptional\sin\sthis\ssense.\sAny\sinsights?\r\n\r\n##\s5.\sexperimental\scode?\r\nThe\s`mkimg`\ssubcommand\sdocumentation\scontains\sthe\scomment:\s"Caution:\shighly\sexperimental,\snot\susable\son\sAndroid,\sonly\spartially\stested\son\sLinux\sand\sWindows."\r\n\r\nIs\sis\sunclear\swhat\sthis\smeans.\sWhich\sparts\sare\stested\sand\swhich\snot?\sCan\sthe\ssubcommand\sactually\sbe\sused?\sIt\sworked\sfor\sme\susing\smacOS\sso\sthis\scould\salso\scount\sas\sbeing\spartly\stested.\sFurther,\sthere\sis\san\sextensive\szipfs.test\sfile\sand\stesting\sTcl9.0b2\sand\sb3\shas\snot\sresulted\sin\sany\serror\sbeing\sreported\son\sany\splatform\sas\sfar\sas\sI\scan\stell.\sIs\sthe\ssentence\sobsolete?
J foundin 9.0
J is_private 0
J login tberg
J priority 5\sMedium
J private_contact 94879582b1b42c382be6941728fabc85e28a2f74
J resolution None
J severity Important
J status Open
J submitter tberg
J subsystem -\sNew\sBuiltin\sCommands
J title Errors/ambiguities\sin\szipfs(n)\smanual\spage
J type Bug
K b9f3ff8fe69cae04239a2de23601d51b289dad06
U tberg
Z 4ec7a24729eda594ecc6e7f8b578ab5a