Add support for EOF
This commit is contained in:
parent
4db7643704
commit
d22a8842b8
|
@ -5,3 +5,8 @@ build_prompt() {
|
||||||
printf '%s:%d> ' "$host" "$port"
|
printf '%s:%d> ' "$host" "$port"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
exec {sock}<&-
|
||||||
|
printf '\n'
|
||||||
|
}
|
||||||
|
|
|
@ -18,11 +18,17 @@ if (( $# )); then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###
|
###
|
||||||
# library
|
# load library
|
||||||
###
|
###
|
||||||
|
|
||||||
. "${REDISH_LIB_PATH:-.}"/redi.sh
|
. "${REDISH_LIB_PATH:-.}"/redi.sh
|
||||||
|
|
||||||
|
###
|
||||||
|
# cleanup on exit
|
||||||
|
###
|
||||||
|
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
###
|
###
|
||||||
# driver
|
# driver
|
||||||
###
|
###
|
||||||
|
|
Loading…
Reference in New Issue