On Fri, Oct 1, 2010 at 6:37 PM, Peter Volkov <[email protected]> wrote:
> В Пнд, 27/09/2010 в 11:37 +0000, Dirkjan Ochtman (djc) пишет:
>> src_compile() {
>>       use static && sed -i -e '/^LIBS/s/LIBS = /LIBS = -static /' Makefile
>>
>>       emake || die "make failed"
>>
>>       if ! use minimal ; then
>>               cd plugin
>>               for i in $( ls 2>/dev/null ); do
>
> This is bad construction:
> http://mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29
>

A nice way around this is to do the following:

    ls -1 | while read i; do

`read` delimits on newline, so you're safe.

-- 
~Nirbheek Chauhan

Gentoo GNOME+Mozilla Team

Reply via email to