[Bug 26749] in cmd, PATH=FOO should set PATH to FOO

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Sep 3 18:20:05 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=26749

Jason Edmeades <us at edmeades.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |us at edmeades.me.uk

--- Comment #8 from Jason Edmeades <us at edmeades.me.uk> 2012-09-03 18:20:05 CDT ---
So keeping this bug report to the issue reported in the first report.

The problem here is that path=fred isnt handled at all, although the code tries
to. The code identifies PATH and parses the '=fred' (in wcmd_parse) into
param1="" and param2="fred" (as the '=' acts as a delimiter). In the
'WCMD_setshow_path' routine, if it finds param1 is null, so assumes 'path' has
just been issued alone, so echos the path to the screen.

I think the '=' being treated as a delimiter is reasonably new (from memory,
could be wrong), but a very simple patch here is to only assume theres no parms
if param1 and param2 are both empty, and then the code 'just works' as it was
already coded to handle this syntax.

I've got a test patch, will tidy up and submit ideally tomorrow, but the above
documents the issue/solution otherwise.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list