lua-users home
lua-l archive

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


On Jan 29, 2013, at 10:11 AM, steve donovan <steve.j.donovan@gmail.com> wrote:

> It _does_ do multiple files now and wildcards, even on Windows.

Hurray! :D

Ok, so:

$ cat TestGlobal.lua
local someComponents = {}
local anURL = 'http://lua.org/'

anURL = anURL:gsub( '#(.*)$', function( aValue ) someComponents.type = nil someComponents.fragment = aValue return '' end )

$ lua lglob.lua TestGlobal.lua
lglob: TestGlobal.lua:4: redefining global type
lglob: TestGlobal.lua:4: undefined set fragment

Which I suspect are both false positives.