From 2008022121376445dbe3e8c16f954a0458103e32 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 17 Dec 2010 12:28:52 +0100 Subject: bugfix: enable backslash interpretation in _cli_ask_yesno() to allow newlines and such --- libui.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libui.sh b/libui.sh index d195673..5e04b4a 100644 --- a/libui.sh +++ b/libui.sh @@ -715,9 +715,9 @@ _cli_ask_string_multiple () { _cli_ask_yesno () { - [ -z "$2" ] && echo -n "$1 (y/n): " - [ "$2" = yes ] && echo -n "$1 (Y/n): " - [ "$2" = no ] && echo -n "$1 (y/N): " + [ -z "$2" ] && echo -ne "$1 (y/n): " + [ "$2" = yes ] && echo -ne "$1 (Y/n): " + [ "$2" = no ] && echo -ne "$1 (y/N): " read answer answer=`tr '[:upper:]' '[:lower:]' <<< $answer` -- cgit v1.2.2