From 701e75bf8ff5c1667516eea3c7a6e4b14f4ff6b6 Mon Sep 17 00:00:00 2001 From: Ron Stone Date: Tue, 12 Apr 2022 13:47:08 -0400 Subject: [PATCH] Fix backspace in script (r5,r6,dsR6) Restore backspace key when using 'read' to grab input. Signed-off-by: Ron Stone Change-Id: Idb5e555f7e3afb555c7949cbb62603cec0347dd8 --- pickCompare.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pickCompare.sh b/pickCompare.sh index bcc797087..37ddea336 100755 --- a/pickCompare.sh +++ b/pickCompare.sh @@ -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 }