[dev-context] Typo in grph-fil.lua

Hans Hagen pragma at wxs.nl
Sun Dec 18 14:28:45 CET 2011


On 17-12-2011 19:45, Aditya Mahajan wrote:
> --- grph-fil.lua 2011-12-17 13:44:00.791168436 -0500
> +++ grph-fil.lua 2011-12-17 13:44:26.158322675 -0500
> @@ -46,7 +46,7 @@
> if a == "function" then
> a(name)
> elseif a == "string" and action ~= "" then
> - os.execute(a)
> + os.execute(action)
> else
> report_run("processing file, no action given for processing '%s'",name)
> end

actually two buglets:

         local ta = type(action)
         if ta == "function" then
             action(name)
         elseif ta == "string" and action ~= "" then
             os.execute(action)
         else
             report_run("processing file, no action given for processing 
'%s'",name)
         end



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-context mailing list