: <i>lsearch with -all options does not return -1 where no match is found</i> plus 6 other changes
by
.
D 2020-06-21T15:43:18.804
J closedate 2459022.15507875
J closer jan.nijtmans
J icomment Maybe\ssurprising,\sbut\s-\sapparently\s-\sthis\sis\sexactly\sas\sexpected.\sThe\sdocumentation\sof\s"-all"\ssays:\s"Changes\sthe\sresult\sto\sbe\sthe\slist\sof\sall\smatching\sindices".\sSince\sthere\sis\sno\smatch,\sthe\slist\sof\sall\smatching\sindices\sis\sempty\sand\sthat's\swhat's\sreturned.\r\n\r\nThe\sdocumentation\syou\sstate\salso\scontains\s"(unless\sthe\soptions\s-all\sor\s-inline\sare\sspecified.)".\sSo,\sthe\scommand\sonly\sreturns\s-1\sfor\sno\smatch\sis\sneither\s-all\snor\s-inline\sis\sspecified.\sSo\s-\smy\sconclusion\s-\sis:\sThis\sis\sas\soriginally\sdesigned,\sand\sit's\sas\sit\sshould\sbe.\sSo,\smarking\sthis\sone\sas\s"Invalid",\ssince\sit\sworks\sas\sdesigned.\r\n\r\nHowever,\sI\sadapted\sthe\sdocumentation\sa\slittle\sbit,\sclarify\sthis\sconfusion.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
J resolution Invalid
J status Closed
K a7c1c2c7e56410980eb154b681f0c5958f2f4cd1
U jan.nijtmans
Z 3fd2b4bd3502466f0f67d9bc86d9fcdb