From b17e5b6d5da8c03da04ad84e9b0dd365eae72ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 8 Oct 2017 03:10:27 +0200 Subject: [PATCH] added cmd function --- demo.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demo.sh b/demo.sh index f97ec71..17dda84 100644 --- a/demo.sh +++ b/demo.sh @@ -24,3 +24,6 @@ function type() function execute() { type "$@" && eval "$@"; } + +function cmd() +{ read command && eval "${command}"; }