From d2cda8d290b156f644723f34c2c6800dfc28536a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Mon, 9 Oct 2017 14:15:32 +0200 Subject: [PATCH] made the cmd function support autocomplete --- demo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo.sh b/demo.sh index 7e6ea4c..97ca120 100644 --- a/demo.sh +++ b/demo.sh @@ -46,7 +46,7 @@ function cmd() { while : ; do prompt - read command + read -e command [ "$command" != "end" ] && eval "${command}" || break [ "$1" ] && break done