.
D 2026-10-10T21:12:12.770
J icomment Still\sthe\ssame\sin\s8.6,\s9.0\sand\s9.1.\sCases\s#1,\s#3\sand\s#5\sare\scorrect:\san\sargument\sstarting\swith\s"-"\sis\staken\sas\san\soption\sunless\sit\sfollows\s<tt>--</tt>.\s#2\sand\s#4\sdiffer\sfrom\sthe\scommand\sonly\sin\scompiled\scode:\sthe\sbytecode\scompiler\schecked\sfor\sa\sleading\s"-"\sonly\sin\swords\swithout\sbackslashes,\sso\s<tt>\\-</tt>\sand\s<tt>-\\\\</tt>\swere\scompiled\sas\spatterns.\s#6\s(a\spattern\sin\sa\svariable)\sis\sthe\ssame\sproblem\sas\s[1902890fff].\n\nProposed\sfix\sfor\s#2\sand\s#4\sin\sbranch\s[/timeline?r=regexp-compile-dash-pattern|regexp-compile-dash-pattern]:\sthe\scompiler\schecks\sthe\svalue\sof\sany\sword\sknown\sat\scompile\stime,\sas\sfor\s<tt>regsub</tt>,\sso\sboth\snow\sgive\s"bad\soption"\sas\sin\s#1.\sTests\sregexpComp-24.12\sto\s24.15.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 697b1bbfe3387b8f777e55d4aba9a4e20833e8ed
U serhiy.storchaka
Z ab7497c1838db03c0c8e419e68706c59