Skip to content

Commit

Permalink
bugfix ASK when you have $ in the question
Browse files Browse the repository at this point in the history
  • Loading branch information
Tauop committed Jan 4, 2012
1 parent 81caef1 commit 2b4b274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ask.lib.sh
Expand Up @@ -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

Expand Down

0 comments on commit 2b4b274

Please sign in to comment.