Artifact [4237905097]
Not logged in

Artifact 4237905097aa8154622b0ce1fde2cb6f1f4da55a:

Ticket change [4237905097] - New ticket [ce73fc2173] ui doesn't work on Windows 9x (portable_system() broken). by anonymous 2010-03-17 10:53:52.
D 2010-03-17T10:53:52
J comment On\sWindows\s9x\sI\sget\s"Invalid\scommand\sor\sfile\sname"\swhen\sissuing\s"fossil\sui"\scommand\sand\seach\stime\sbrowser\ssends\sa\srequest\sto\sa\sfossil\sserver.\r\n\r\nThe\sproblem\sis\sin\sportable_system()\s--\s9x\sdoesn't\slike\sa\shack\swith\sdouble\squotes\saround\sa\scommand\sstring.\sSince\ssystem(string)\sfunction\son\sWindows\sis\simplemented\sas\s%COMSPEC%\s/c\sstring,\son\s9x\swe\sget:\s%COMSPEC%\s/c\s""fossil"\shttp\s"foo"",\swhich\sdoes\snot\swork,\sinstead\sof\snormal:\s%COMSPEC%\s/c\s"fossil"\shttp\s"foo",\swhich\sdoesn't\swork\son\sNT\setc.\r\n\r\nA\shack\susing\sdouble\squotes\saround\sentire\scommand\sstring\son\sWindows\sNT\s(2000,\sXP\setc.)\s[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cmd.mspx?mfr=true|is\sdocumented]\sand\sworks\sbecause\r\ncmd.exe\sstrips\sthe\sfirst\sand\sthe\slast\squote\sif\sa\scommand\sstarts\swith\sa\squote.\sSo\sthere\sexists\sanother\sdirty\s(and\sIIRC\sundocumented)\shack.\sWe\scould\sstart\scommand\sstring\swith\ssomething\sthat\sboth\scmd.exe\sand\scommand.com\signore:\r\n<pre>%COMSPEC%\s/c\s="fossil"\shttp\s"foo"\r\n%COMSPEC%\s/c\s="fossil"\shttp\sfoo\r\n%COMSPEC%\s/c\s=fossil\shttp\s"foo"\r\n%COMSPEC%\s/c\s=start\shttp://127.0.0.1/</pre>\r\n\r\nCommands\sabove\swork\sjust\sfine\sboth\sin\s9x\sand\sNT\s(up\sto\sWindows\s7)\sas\slong\sas\sinternal\scommands\slike\secho\sor\sstart\sare\sNOT\squoted\s(<code>="start"\shttp://127.0.0.1/</code>\sdoesn't\swork\snor\s<code>"start"\shttp://127.0.0.1/</code>\sdoes).\sSo,\smaybe\s<code>mprintf("=%s",\szOrigCmd)</code>\swould\sbe\sbetter?\sAny\sother\sideas?\sAnd\syes,\sI\sknow,\sthat\sit\sis\s2010\snow\sand\s98\smust\sbe\salready\sdead…\s:-)
J foundin [599e6abfb1]\s2010-03-08
J private_contact 85642192e67e1e669fd6547f4b92074c6e91c71e
J severity Minor
J status Open
J title ui\sdoesn't\swork\son\sWindows\s9x\s(portable_system()\sbroken)
J type Code_Defect
K ce73fc217320601b9c8ba2c94507e25e82879edc
U anonymous
Z 9a676b0bfb05f43132ee893d3f57e07a