winepath bug without arguments?

Austin English austinenglish at gmail.com
Thu Aug 19 12:35:22 CDT 2010


On Mon, Aug 9, 2010 at 5:41 AM, Paul Chitescu <paulc at voip.null.ro> wrote:
> On Monday 09 August 2010 01:23:24 pm Jerome Leclanche wrote:
>> Hi
>>
>> After fixing a bug in MPQEdit related to opening directories, I
>> noticed winepath returns a different result with and without quotes:
>>
>> adys at azura:~/.wine/drive_c$ winepath -w
>> adys at azura:~/.wine/drive_c$ winepath -w ""
>> C:\
>>
>> With quotes it returns the current directory. Is that intended? If not
>> I'll open a bug...
>>
>>
>>
>> J. Leclanche
>
> Yes, it's intended. winepath converts zero or more arguments. An empty
> argument means "start from current dir... and print!"
>
> [paulc at bussard drive_c]$ winepath -w "" users "Program Files"
> C:\
> C:\users
> C:\Program Files

Then it seems there's still a bug:
austin at midna:~$ winepath -w ; echo $?
0

either a path should be returned or a non-zero status...

-- 
-Austin



More information about the wine-devel mailing list