On 2014-04-13, Andrei POPESCU <andreimpope...@gmail.com> wrote:
>
>> for i in `ls *.png`;
>
> Is there something wrong with
>
>     for i in *.png

According to this, there is everything right:

http://mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29

# POSIX
for i in *.png; do
    [ -e "$i" ] || continue
    some command "$i"
done


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/slrnlkl0dt.32t.cu...@einstein.electron.org

Reply via email to