On Thu, Jan 15, 2004 at 02:54:21AM +0200, Cartman wrote:
> Am urmatorul cod:
>  
> #! /bin/csh
>  
>     foreach file(*)
>         if (-r $file)
>                 echo "File $file is readable"
>         else
>                 echo "File $file is unreadable"
>         endif
>     end
>  
> Eroarea pe care o primesc este: "if:Empty if"
> What's wrong wrong it?

-         if (-r $file)
+         if (-r $file) then

-- 
Birzan George                   Violence is the last refuge of
  Cristian                      the incompetent -- Salvor Hardin

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui