.
D 2012-08-02T11:47:35
J assignee dkf
J cmimetype text/plain
J comment In\sa\sproc\swe\sdid\sthe\sfollowing\smistake:\s\n\nreturn\sexpr\s{[dict\sexists\s$dict\s$key]\s?\s[dict\sget\s$dict\s$key]\s:\s0}\n\swich\sought\sto\sbe\s:\nreturn\s[expr\s{[dict\sexists\s$dict\s$key]\s?\s[dict\sget\s$dict\s$key]\s:\s0}]\n\nThe\ssurprise\sis\sthat\sthe\sexecution\sof\sthe\sfaulty\scode\sreturns\san\sempty\sstring\sand\snot\san\serror.\nIt\smight\sbe\sthat\sthe\s2nd\sword\s"epr"\shas\sbeen\sintrepreted\sas\san\soption\sargument\sfor\sthe\sthird\sform\sof\sreturn\ssyntax\s(i.e.\sreturn\s?option\svalue\s...?\s?result?),\sbut\sshoudn't\sany\soption\sbegin\swith\sa\sdash\s?\n\nOn\san\sother\s(but\srelated)\ssubject,\sthe\sdoc\sis\snot\svery\sclear\sabout\sthe\sdifferences\sbetwen\sthe\s2nd\s(i.e.\sreturn\s?-code\scode?\s?result?)\san\sthird\sform\s(return\s?option\svalue\s...?\s?result?)\sof\sthe\ssyntax\sof\sreturn\scommand\s:\sare\seach\sform\sexclusive\sfrom\sthe\sother\sor\scan\sthey\sbe\smixed\stogether\sas\sshown\sin\sthe\sexamples\switten\sin\sTIP\s90\s?\n\nMany\sthanks\n\nJean-Marie\n\n
J foundin obsolete:\s8.5.10
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter jmcuaz
J subsystem 18.\sCommands\sM-Z
J title Wrong\sargument\sto\sreturn\scommand\sdoesnt\sreturn\serror
J type Bug
K 3553586fffffffffffffffffffffffffffffffff
U jmcuaz
Z 6e31c6ab14f59f1e8562e440a8e3d733