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

Ron Johnson ron.l.johnson at cox.net
Thu Aug 23 01:06:40 CEST 2012


On 08/22/2012 03:45 PM, PyroPeter wrote:
> On 08/22/2012 10:17 PM, Ron Johnson wrote:
[snip]
>
>> Would an alternative be:
>> for f in $(find /stuff); do mplayer "$f"; done
>
> No, because it is really hard to get bash to loop over a list of files
> with spaces in the filenames.

Eh?  Double quotes handle them perfectly.

>                                Special characters in filenames are a
> great problem with my music collection, which is why I came up with the
> playlist-through-pipe approach.
>

Double quotes handle them, too.

ron at haggis:~$ touch 'foo&bar'
ron at haggis:~$ touch 'snaggle|rock)bar'
ron at haggis:~$ dir *bar
-rw-rw-r-- 1 ron ron 0 2012-08-22 18:04:36 foo&bar
-rw-rw-r-- 1 ron ron 0 2012-08-22 18:05:02 snaggle|rock)bar
ron at haggis:~$ for f in *bar; do echo "$f"; done
foo&bar
snaggle|rock)bar


-- 
If adults of legally sound mind must be told what foods they
are not allowed to buy, then those people are not competent
to choose (i.e. vote for) their own leaders.


More information about the MPlayer-users mailing list