Re: Newbie question

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Sun, 16 Apr 2017 08:37:58 +0000

>What I am trying to write, is a minimal interpreter read-eval loop,
>which gets its $INPUT from /dev/tty.

  How about this?

  redirfd -r 0 /dev/tty
  forstdin -d"\n" LINE
  importas -u LINE LINE
  execlineb -c $LINE

--
  Laurent
Received on Sun Apr 16 2017 - 08:37:58 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC