Artifact
4714fe20fc9a77959f3ed490e773d352f5cf34d5d8033e7bbc7cfccb54f65dd9:
Ticket change
[4714fe20fc]
- New ticket
[c1a376375e0e6488|c1a376375e] <i>imported namespace ensemble command name distorted during deletion trace on the import</i>.
by
pooryorick on
2020-08-31 19:27:28.
D 2020-08-31T19:27:28.822
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment The\sfollowing\sscript\sshould\sresult\sin\san\serror\sto\sthe\seffect\sthat\sthe\sroutine\r\ndoesn't\sexist.\s\sInstead,\sit\sreturns\sthe\sfull\spath\sof\sthe\sdeleted\sroutine\swith\r\nthe\sempty\sstring\sin\splace\sof\sthe\stail\sof\sthe\sdeleted\sroutine.\r\n\r\n<code><verbatim>\r\n#!\s/usr/bin/env\stclsh\r\n\r\n\r\nproc\straced\s{oldname\snewname\sop}\s{\r\n\tset\sorigin\s[namespace\sorigin\s$oldname]\r\n\tputs\s[list\sorigin\s1\s$origin]\r\n\trename\s$origin\s{}\r\n\tset\sorigin\s[namespace\sorigin\s$oldname]\r\n\tputs\s[list\sorigin\s2\s$origin]\r\n\r\n}\r\n\r\nnamespace\sexport\s*\r\n\r\nnamespace\seval\sns1\s{\r\n\tnamespace\sensemble\screate\r\n}\r\n\r\nnamespace\seval\sns2\s{\r\n\tnamespace\simport\s::ns1\r\n\ttrace\sadd\scommand\sns1\sdelete\straced\r\n}\r\n\r\nrename\sns1\s{}\r\n</verbatim></code>
J foundin all\sversions
J is_private 0
J login pooryorick
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter pooryorick
J subsystem 21.\s[namespace]
J title imported\snamespace\sensemble\scommand\sname\sdistorted\sduring\sdeletion\strace\son\sthe\simport
J type Bug
K c1a376375e0e648830cf52ca984a9ace563c0706
U pooryorick
Z 78b2fa23789a9f236b67af2e512a7268