Re: Stream from call

2024-04-25 Thread Patrick Lebas
Thanks everyone for the speed Envoyé à partir de Outlook pour Android From: andr...@itship.ch on behalf of picolisp@software-lab.de Sent: Thursday, April 25, 2024 1:34:24 PM To: picolisp@software-lab.de Subject: Re: Stream from call I

Re: Stream from call

2024-04-25 Thread picolisp
Hi Patrick! 1) for only reading: check out (open 'lst ...) - when (in) gets a list instead of a symbol (file) or number (already opened file descriptor), the list is evaluated like the (call) arguments and within the (in 'lst ..)-expression the input channel is bound to the output channel of

Re: Stream from call

2024-04-25 Thread picolisp
I obviously meant: check out (in 'lst ...) not open, sorry! On 25.04.24 13:33, andr...@itship.ch wrote: Hi Patrick! 1) for only reading: check out (open 'lst ...) - when (in) gets a list instead of a symbol (file) or number (already opened file descriptor), the list is evaluated like the

Stream from call

2024-04-25 Thread Patrick Lebas
How can I get the Stream-out from (call 'ls) and put it into a string (setq str...) ? THANKS. Envoyé à partir de Outlook pour Android

Re: Stream from call

2024-04-25 Thread Tomas Hlavaty
On Thu 25 Apr 2024 at 11:03, Patrick Lebas wrote: > How can I get the Stream-out from > (call 'ls) and put it into a string (setq str...) ? THANKS. (in '(ls) (read)) you might want something else than read -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Stream from call

2024-04-25 Thread Alex Williams
Try: (setq *Str (in '(/bin/ls) (till NIL T))) Each entry will be separated by a newline "^J" There are other ways to do this... AW On Thu, 25 Apr 2024, Patrick Lebas wrote: How can I get the Stream-out from (call 'ls) and put it into a string (setq str...) ? THANKS. Envoyé à partir de