From 2b4b274bbcbbcdc75961528c443935afb6783a6c Mon Sep 17 00:00:00 2001 From: Guiran Patrick Date: Wed, 4 Jan 2012 16:09:04 +0100 Subject: [PATCH] bugfix ASK when you have $ in the question --- ask.lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ask.lib.sh b/ask.lib.sh index d60abbc..47c2386 100644 --- a/ask.lib.sh +++ b/ask.lib.sh @@ -248,7 +248,7 @@ if [ "${__LIB_ASK__:-}" != 'Loaded' ]; then if [ "${no_print}" = 'false' ]; then question="${__MSG_INDENT__}${question}" [ "${do_break}" = 'true' ] && question=${question}$'\n'${__MSG_INDENT__} - question=$( echo "${question}" | sed -e 's/\\/\\\\/g;s/\"/\\\"/g' ) + question=$( echo "${question}" | sed -e 's/\\/\\\\/g;s/\"/\\\"/g;s/\$/\\\$/' ) read_opt="${read_opt} -p \"${question}\" " fi