<i>[return]: broken ordering of nested -options</i> status still Open with 3 other changes
by
.
D 2025-06-20T15:46:49.455
J icomment \r\nThe\sdocumentation\ssays:\r\n\r\n\s\s\s\s\s\s\s-options\soptions\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\sThe\s\svalue\s\soptions\smust\sbe\sa\svalid\sdictionary.\s\sThe\sentries\sof\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\sthat\sdictionary\sare\streated\sas\sadditional\s\soption\s\svalue\s\spairs\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\sfor\sthe\sreturn\scommand.\r\n\r\nWhile\san\sexplicit\sordering\sguarantee\sis\snot\sstated,\sthe\sdescription\r\nsuggests\sa\slifting\sof\sthe\sdictionary\sentries\sout\sof\sthe\sdictionary\r\nto\senter\sthe\soptions\salongside\sthe\sother\soptions.\r\n\r\nThis\sis\sthe\ssame\skind\sof\sexpansion\soffered\sby\sthe\s{*}\ssyntax,\sbut\r\nthe\s-options\soption\sdebuted\sat\sthe\ssame\stime\sas\sthat\ssyntax,\swhen\r\nreliance\son\sit\swas\sunclear.\r\n\r\nAn\sexplicit\saim\swas\sto\senable\sa\sre-raising\spattern:\r\n\r\n\s\s\s\scatch\s$script\sm\so\r\n\s\s\s\sreturn\s-options\s$o\s$m\r\n\r\nHad\sthe\s{*}\ssyntax\sbeen\sbetter\sestablished\sat\sthe\stime,\swe\smight\r\nhave\sgone\swithout\s-options\sand\sprescribed:\r\n\r\n\s\s\s\scatch\s$script\sm\s0\r\n\s\s\s\sreturn\s{*}$o\s$m\r\n\r\nWhatever\sprecise\smental\smodel\sis\sin\suse,\swe\sexpect\slater\sappearances\r\nof\sthe\ssame\soption\sto\soverwrite\searlier\sones,\sso\sthat\swe\sreason:\r\n\s\r\n\s\s\s\sreturn\s-level\s0\s-options\s{-options\s{-code\sbreak}\s-code\sok}\r\n\r\nis\ssame\sas\r\n\r\n\s\s\s\sreturn\s-level\s0\s-options\s{-code\sbreak}\s-code\sok\r\n\r\nis\ssame\sas\r\n\r\n\s\s\s\sreturn\s-level\s0\s-code\sbreak\s-code\sok\r\n\r\nis\ssame\sas\r\n\r\n\s\s\s\sreturn\s-level\s0\s-code\sok\r\n\r\nand\sthat's\snot\swhat\sTcl\sis\sdoing.\r\n\r\nNested\soptions\sare\srare.\s\sA\ssingle\stest\seven\sattempts\sit\r\n(cmdMZ-return-2.14),\sbut\sdoesn't\sillustrate\sthe\sbug.\r\nNot\snoticed\sfor\sall\sthis\stime.
J login dgp
J mimetype text/plain
K ecf35c71200d782cbd63e15c4df80b5e3c75cbd4
U dgp
Z 8b7d4a70f4ae13ee2bbb4cd7aed5b781