Skip to content
Tcl Source Code Artifact [71d17fb295]
Login

Artifact [71d17fb295]

Artifact 71d17fb295e1f9ae1dffee515ef7cd6262ac23140434dcb14a24b0144733ac91:

Ticket change [71d17fb295] - New ticket [a7c1c2c7e5641098|a7c1c2c7e5] <i>lsearch with -all options does not return -1 where no match is found</i>. by zhou on 2020-06-20 07:08:43.
D 2020-06-20T07:08:43.898
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\sdocument\sof\slsearch\scommand\ssays:\sThis\scommand\ssearches\sthe\selements\sof\slist\sto\ssee\sif\sone\sof\sthem\smatches\spattern.\sIf\sso,\sthe\scommand\sreturns\sthe\sindex\sof\sthe\sfirst\smatching\selement\s(unless\sthe\soptions\s-all\sor\s-inline\sare\sspecified.)\sIf\snot,\sthe\scommand\sreturns\s-1.\sThe\soption\sarguments\sindicates\show\sthe\selements\sof\sthe\slist\sare\sto\sbe\smatched\sagainst\spattern\sand\smust\shave\sone\sof\sthe\svalues\sbelow:\s\r\n\r\nBut\sif\syou\sspecify\sthe\s-all\soption\sand\sthere\sis\sno\smatches\sfound,\sthe\slsearch\scommand\sreturns\san\sempty\sstring\sinstead\sof\s-1.
J foundin 8.6.8
J is_private 0
J login zhou
J priority 5\sMedium
J private_contact c76aa1c4f5b5ad6fa0c50aac05cee1be8566f7a1
J resolution None
J severity Severe
J status Open
J submitter zhou
J subsystem -\sNew\sBuiltin\sCommands
J title lsearch\swith\s-all\soptions\sdoes\snot\sreturn\s-1\swhere\sno\smatch\sis\sfound
J type Bug
K a7c1c2c7e56410980eb154b681f0c5958f2f4cd1
U zhou
Z 3d2540dd515761eb56ac2e6d950dc7d6