Fix backspace in script

Restore backspace key when using 'read' to grab input.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I3b32db02ba17db1aa267ece2a8e5024907942f8c
This commit is contained in:
Ron Stone 2022-04-13 11:27:38 -04:00
parent 34d7c41136
commit d123c947a0
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ get_dates () {
if [[ $date == "begin" ]]; then display_date=$default_start; else display_date=${today}; fi
read -p "Enter $date date or ENTER for $display_date (yyyy-mm-dd): " edate
read -e -p "Enter $date date or ENTER for $display_date (yyyy-mm-dd): " edate
case $edate in
@ -144,7 +144,7 @@ get_users () {
get_pick () {
read -p 'Optional string to filter on in (pick list): ' str
read -e -p 'Optional string to filter on in (pick list): ' str
}