Demonstrate -e and --exec flags

This commit is contained in:
Mario Nebl 2018-01-26 12:50:49 +01:00 committed by David Peter
parent 33791d8400
commit b269f4902e
1 changed files with 6 additions and 3 deletions

View File

@ -8,9 +8,8 @@ enter() {
type $PROMPT
type $1
sleep 0.5
type " "
sleep 0.25
type "\n"
printf '%b' " ⏎\n"
sleep 0.1
eval $1
type "\n"
unset IFS
@ -22,6 +21,10 @@ type() {
enter "fd"
enter "fd -e md"
enter "fd -e md --exec wc -l"
enter "fd mod"
enter "fd sh"