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

View File

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