octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New function proposal


From: John W. Eaton
Subject: Re: New function proposal
Date: Wed, 14 Feb 2007 22:40:41 -0500

On 13-Feb-2007, Paul Kienzle wrote:

| For popen2 I think
| 
|       [in, out] = popen2('echo');
|     fprintf(in,"hello");
|     response = fgets(out);
|     disp response
| 
| is more readable than
| 
|     p = popen2('echo');
|     fprintf(p(1),"hello");
|     response = fgets(p(2));
|     disp response
| 
| so I would prefer the former interface.

I agree.

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]