From 2ba66894128c412d55f585f410889894ddfd6098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 8 Oct 2017 03:07:32 +0200 Subject: [PATCH] fixed wait function (now presses enter automatically) and added execute --- demo.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demo.sh b/demo.sh index 09110e2..f97ec71 100644 --- a/demo.sh +++ b/demo.sh @@ -13,6 +13,7 @@ function wait() else read -rst "$PROMPT_TIMEOUT" fi + printf "\n" } function type() @@ -20,3 +21,6 @@ function type() printf "$*\n" | simtyping wait } + +function execute() +{ type "$@" && eval "$@"; }