[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unix-ify File Names



Frank Terbeck <ft@bewatermyfriend.org> wrote:

> >  for FILE in `ls *$1` ; do
> 
> Please don't teach beginners to do for loops like this. It's broken in
> various ways. Just do:
> 
>   for FILE in *"$1" ; do
>

Being a self taught script writer I just have to ask what are the
'various ways' in which the first form is broken?

Anticipating enlightenment,
Mike



Reply to: