[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problem with 5.2.0 -E interpreter option.
- From: Patrick Rapin <toupie300@...>
- Date: Sun, 11 Dec 2011 10:26:53 +0100
> It seems that the "!" doesn't do what is expected to do.
For information, the "!" character is not interpreted by Windows, but
is converted to the executable path by Lua.
This is done in function setprogdir in loadlib.c, using
GetModuleFileNameA function to retrieve the executable path.
When -E is set, pmain calls resetpaths in lua.c to reset search path.
The problem is that resetpaths is called *after" setprogdir, and the
"!" characters are not parsed a second time.