[Bug 3940] New: Quotes get stripped from the commandline

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Sat Jan 17 04:54:36 EST 2009


http://bugzilla.icculus.org/show_bug.cgi?id=3940

           Summary: Quotes get stripped from the commandline
           Product: Quake 3
           Version: SVN HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: AnthonyJ at planetquake.com
         QAContact: quake3-bugzilla at icculus.org


If a cvar value must contain spaces, and it is set via the commandline, you
must quote the cvar value, so that Cmd_TokenizeString correctly parses it.
However, the current code in main() rebuilds the commandline from tokenised
arguments without regard to whether it was previously quoted. 

The user impact of this is that for example, +set fs_homepath "C:\bleh\New
Folder" has the quotes stripped, and fs_homepath is set to "C:\bleh\New", and
the commandline parser doesn't know what to do with the unexpected "folder"
token.


-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the quake3-bugzilla mailing list