[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.execute is scary; Jay rants about strings again (was Re: [ANNOUNCE] lua stdlibs release: now Lua 5 compatible)
- From: Jay Carlson <nop@...>
- Date: Fri, 30 Jan 2004 17:11:02 -0600 (CST)
On Fri, 30 Jan 2004, Jay Carlson wrote:
> On Wed, 28 Jan 2004, Reuben Thomas wrote:
> > This is the main objection to what I propose above. What can't you do
> > conveniently with exec and glob?
Oh right, I forgot:
f = os.popen("mipsel-linux-objdump --syms --section="..section..
" --start-address="..hex(start).." "..objfilename)
for l in f:lines() do
_, _, etc = string.find(l, "^(%x%x%x%x%x%x%x%x) [^l] ...")
...
end
Before you ask, I *did* start on a libelf binding before giving up in
dismay... :-)
Jay