[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: Reuben Thomas <rrt@...>
- Date: Sat, 31 Jan 2004 01:01:35 +0100 (CET)
On Fri, 30 Jan 2004, Jay Carlson wrote:
> 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
What's wrong with pipe, fork and exec? (With a simplifying wrapper,
obviously.)
--
http://www.mupsych.org/~rrt/
Reality is what refuses to disappear when you stop believing in it (Dick)