From 2f6c4c60230bb29be7af69c6b4f2ec6baf24520b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 8 Oct 2017 03:24:47 +0200 Subject: [PATCH] type now does not wait implicitly, whereas execude will and explicitly --- demo.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/demo.sh b/demo.sh index 17dda84..f67ff0c 100644 --- a/demo.sh +++ b/demo.sh @@ -17,13 +17,10 @@ function wait() } function type() -{ - printf "$*\n" | simtyping - wait -} +{ printf "$*\n" | simtyping; } function execute() -{ type "$@" && eval "$@"; } +{ type "$@" && wait && eval "$@"; } function cmd() { read command && eval "${command}"; }