umount: Fix mount points escaping/unescaping with Bash-4.3

master
Igor Murzov 2014-06-09 00:59:13 +04:00
parent 01024f595e
commit 292830be53
1 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,8 @@ _reply_compgen_array()
# We also have to add another round of escaping to $cur.
local ecur="$cur"
ecur="${ecur//\\/\\\\}"
ecur="${ecur//\'/\'}"
ecur=${ecur//\\/\\\\}
ecur=${ecur//\'/\\\'}
# Actually generate completions.
local oldifs=$IFS
@ -29,7 +29,7 @@ _reply_compgen_array()
# Unescape strings in the linux fstab(5) format (with octal escapes).
__linux_fstab_unescape() {
eval $1="'${!1//\'/\047}'"
eval $1="'${!1//\'/\\047}'"
eval $1="'${!1/%\\/\\\\}'"
eval "$1=$'${!1}'"
}