Fix backspace in script

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

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I1eec5595d87eec28d1d4bd7a51e32c70ed0cd2c2
This commit is contained in:
Ron Stone 2022-04-13 11:31:25 -04:00
parent b58e685863
commit b470df5aa9
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
}