Re: smplayer "file ' file" 2>/dev/null not work
- From: <tpgww@xxxxxxxxxxx>
- To: emelfm2@xxxxxxxxxxxxx
- Date: Wed, 12 Nov 2008 08:50:24 +1100
On Tue, 11 Nov 2008 11:13:08 +0100
Rafał <rafalm23@xxxxxxxxxx> wrote:
> smplayer "file 89 file.mp3" 2>/dev/null work OK
> smplayer "file '89 file.mp3" 2>/dev/null *NOT* work
> smplayer "file 89 file.mp3" (without /dev/null) *very slow*
Seems to be a couple of things in play here.
1. smplayer "arg"
This is for smplayer to handle, whatever arg is. "file 89 file.mp3" or "file
'89 file.mp3" are both, in effect, a single argument which may or may not be
something valid for smplayer.
2. Bug in command interpreter is preventing 2>/dev/null from automatically
invoking an external shell (which is required to handle redirection) when
there's a single ' embedded in the argument. ATM you would need to explicitly
prepend > i.e.
>smplayer "file '89 file.mp3" 2>/dev/null
Does it behave more sensibly when you do this ?
Regards
Tom
--
Users can unsubscribe from the list by sending email to
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by
logging into the web interface.
Other related posts: