[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: readfrom("|")
- From: lhf@... (Luiz Henrique de Figueiredo)
- Date: Wed, 30 Dec 1998 05:20:31 -0200 (EDT)
>From lua-l@tecgraf.puc-rio.br Wed Dec 30 03:10:39 1998
>From: Elan <icimjs@loop.com>
>
>Could someone illustrate this use of readfrom such that
>a = readfrom("|hello")
>will execute the file "hello" and assign the output of "hello" to the
>variable a?
try:
readfrom("|ls")
a=read(".*")
>(I tried finding the implementation of readfrom in the source files, hoping
>to be able to answer this question myself, by searching for "popen", but I
>couldn't find the file that contains the implementation.)
the file is liolib.c
--lhf