[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] lglob (was: Convenient undefined variable checking script)
- From: Petite Abeille <petite.abeille@...>
- Date: Tue, 29 Jan 2013 21:04:40 +0100
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.