Strange behavior of command line parameter passing to linux

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
lovyagin
Level 2
Level 2
Posts: 13
Joined: Fri Aug 20, 2010 5:36 am

Strange behavior of command line parameter passing to linux

Post by lovyagin »

Using Far Manager under wine (version 1.2) and trying to open files from command line with native linux application (for example: to play a media with vlc) I've found that parameters are passed to program very strangely (possibly bug or feature?)

For example, if I run

Code: Select all

vlc "media 1.wav"
it passes two parameters instead of one to vlc: "media" and "1.wav", so file can't be opened properly. Nothing like

Code: Select all

vlc \"media 1.wav\"
helps. However redirecting stdout or stderr output turn parameter passing to normal: run

Code: Select all

vlc "media 1.wav" 2>anyfile
or even

Code: Select all

vlc "media 1.wav" >nul
and vlc receive one parameter "media 1.wav" as it should and plays file properly. Well... any ideas?
Locked