[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [FEATURE REQUEST] Custom-naming of preloaded modules
- From: "Soni L." <fakedme@...>
- Date: Fri, 17 Feb 2017 16:41:07 -0200
On 17/02/17 04:34 PM, Soni L. wrote:
On 17/02/17 04:29 PM, Roberto Ierusalimschy wrote:
You should remove the 'const' here, but otherwise the assignment is
correct; ANSI C assures that the strings pointed to by 'argv' are
modifiable (and you don't need to restore its value).
Wouldn't that affect `arg`? Or is `arg` created before any argument
processing takes place?
'arg' is created before any processing, because it is available to
$ LUA_INITfirstname.lastname@example.org' lua -l t2 t2.lua b c
Does this mean the result of -l could be tweaked by a LUA_INIT script?
Wait, this behaviour should be tweaked...
What if `lua` loaded everything into `arg` as it appears, then started
up LUA_INIT, then started processing `arg` and moving the elements
around, so e.g. your command would print:
Then LUA_INIT would be able to process -l, thus doing what dirk wants.
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.