[MPlayer-users] BUG: stream_file.c: reconnects to fifos

Krzysztof Duchnowski amidk75 at gmail.com
Fri Aug 24 10:21:48 CEST 2012


On 22.08.2012 22:48, Nicolas George wrote:
> Le sextidi 6 fructidor, an CCXX, PyroPeter a écrit :
>> No, because it is really hard to get bash to loop over a list of files
>> with spaces in the filenames. Special characters in filenames are a
>> great problem with my music collection, which is why I came up with the
>> playlist-through-pipe approach.
> 
> Drop bash in favor of zsh, it can do the find and the loop in a robust way
> even with special characters.
> 
> mplayer **/*.ogg
> 
> And it comes with the nifty script zmv that can also eliminate all the
> annoying characters in your files.


OK, I'm trying ZSH right now but tell me how I search through both
normal and hidden directories, like:

~/Sound/.directory one
~/Sound/.directory two/subdir one
~/Sound/directory three
~/Sound/directory four/.subdir two

% for f in ~/Sound/**/*; do echo $f; done
~/Sound/directory three
~/Sound/directory four

gives only normal directories level 1 of dir tree, and


% for f in ~/Sound/.**/*; do echo $f; done
~/Sound/.directory one
~/Sound/.directory two

gives only hidden directories level 1 of dir tree

but I want combined, and I can't, and it won't search in deeper
directory tree, so back to find and it work the same as in BASH - square
one?

% PLAYLIST=; while read f; do PLAYLIST="${PLAYLIST}\n${f}"; done< <(find
$PWD -iname '*.ogg'); mplayer -playlist <(echo "$PLAYLIST")

is only thing that works with -playlist, and maybe at least it works
with special characters under ZSH

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list