[Bash-completion-commits] [bash-completion] 01/03: umount: Fix mount points escaping/unescaping with Bash-4.3

Igor Murzov garik-guest at moszumanska.debian.org
Sun Jun 8 21:50:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

garik-guest pushed a commit to branch master
in repository bash-completion.

commit 292830be53f69456d284c10dc5fea28dd393d7bc
Author: Igor Murzov <e-mail at date.by>
Date:   Mon Jun 9 00:59:13 2014 +0400

    umount: Fix mount points escaping/unescaping with Bash-4.3
---
 completions/umount.linux | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/completions/umount.linux b/completions/umount.linux
index d66c99f..6b27556 100644
--- a/completions/umount.linux
+++ b/completions/umount.linux
@@ -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}'"
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list