Newbie question

From: Vincent <b21enu_at_gmail.com>
Date: Sat, 15 Apr 2017 22:08:40 +0200

How would you translate this simple eval loop to execlineb?

#!/bin/sh
read input </dev/tty
exec sh -c "$input;./$0"

This of course does not work:

#!/bin/execlineb
backtick -n input { read input </dev/tty }
execlineb -c $input

because read is builtin to sh.
Is there a solution as simple as the above?
Received on Sat Apr 15 2017 - 20:08:40 UTC

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