Root/mlt/wpan-ipv4/pex

Source at commit 3f820dc41d82c78d972efe3c69f139f209a742f9 created 9 years 1 month ago.
By Werner Almesberger, cad/test2/README: added more results and cleaned up the text
1#!/bin/sh
2in=$1
3prompt="${1##*/}"
4prompt="${prompt%.*}"
5shift
6{
7    read c
8    while read c; do
9        if [ "${c#!}" != "$c" ]; then
10            eval "${c#!}" </dev/tty
11            continue
12        fi
13        if [ "${c#:}" = "$c" ]; then
14            cmd=$c
15        else
16            c=${c#:}
17            read cmd
18        fi
19        echo -e -n "$prompt> \033[1m$c\033[m "
20        read x </dev/tty
21        eval "$cmd" </dev/tty
22    done
23} <$in
24

Archive Download this file

Branches:
master



interactive