lua-users home
lua-l archive

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


Why does this behave in this way? I would expect the result to be:

ITEM;ITEMITEMITEM;ITEM 5

On Apr 29, 2013 10:09 AM, "Roberto Ierusalimschy" <roberto@inf.puc-rio.br> wrote:
> > Even odder....
> >
> > Lua 5.2.2  Copyright (C) 1994-2013 Lua.org, PUC-Rio
> >  > =(";a;"):gsub("a-", "ITEM")
> >  ITEM;ITEMaITEM;ITEM    4
> >
> > Why is that 'a' still there?
>
> That's an independent bug. [...]

Please stop calling "bug" something that does not behave as you wanted
or imagined.

-- Roberto