diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2010-12-17 12:28:52 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2010-12-17 12:28:52 +0100 |
commit | 2008022121376445dbe3e8c16f954a0458103e32 (patch) | |
tree | e5e0a50dba5f3aece60046fed4f90960cf857ac8 | |
parent | 4e1601523c61ff50797a56e3c7e91394915f1351 (diff) |
bugfix: enable backslash interpretation in _cli_ask_yesno() to allow newlines and such
-rw-r--r-- | libui.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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` |