type now does not wait implicitly, whereas execude will and explicitly
This commit is contained in:
parent
b17e5b6d5d
commit
2f6c4c6023
7
demo.sh
7
demo.sh
@ -17,13 +17,10 @@ function wait()
|
|||||||
}
|
}
|
||||||
|
|
||||||
function type()
|
function type()
|
||||||
{
|
{ printf "$*\n" | simtyping; }
|
||||||
printf "$*\n" | simtyping
|
|
||||||
wait
|
|
||||||
}
|
|
||||||
|
|
||||||
function execute()
|
function execute()
|
||||||
{ type "$@" && eval "$@"; }
|
{ type "$@" && wait && eval "$@"; }
|
||||||
|
|
||||||
function cmd()
|
function cmd()
|
||||||
{ read command && eval "${command}"; }
|
{ read command && eval "${command}"; }
|
||||||
|
Loading…
Reference in New Issue
Block a user