2015-02-10 23:59:50 +03:00
|
|
|
#!/usr/bin/env bash
|
2014-03-25 01:32:24 +04:00
|
|
|
|
|
|
|
READ () {
|
|
|
|
read -u 0 -e -p "user> " r
|
|
|
|
}
|
|
|
|
|
|
|
|
EVAL () {
|
2015-03-07 18:04:07 +03:00
|
|
|
r="${1}"
|
2014-03-25 01:32:24 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
PRINT () {
|
|
|
|
r="${1}"
|
|
|
|
}
|
|
|
|
|
|
|
|
while true; do
|
|
|
|
READ
|
|
|
|
EVAL "${r}"
|
|
|
|
PRINT "${r}"
|
|
|
|
echo "${r}"
|
|
|
|
done
|