foreach in csh

I have a foreach loop in a csh script and I noticed that it tries to find the files with the pattern *$searchpt* in the file name. I'm confused as I never specified checking for the files.

    foreach f ( *$searchpt* )
      set fnew = `echo $f | awk -v searchpat=$searchpt    \
                                -v replacepat=$replacept  \
                                '{sub(searchpat,replacepat); print}'`
      endif
  • says check for files, through shell globbing, unless you quote it.