Control: tags -1 + patch The reason why grep doesn't terminate, is that the command contains an empty variable:
"grep $mdir /proc/mounts" mdir is not defined in this function. A patch is attached which fixes this.
diff --git a/debian/completion/pmount b/debian/completion/pmount
index 12734de..c9c67bd 100644
--- a/debian/completion/pmount
+++ b/debian/completion/pmount
@@ -22,7 +22,9 @@
have pmount &&
_pmount() {
- local cur prev options devices fslist
+ local cur prev options devices fslist mdir
+
+ mdir="$(readlink -f /media)"
options=' -r --read-only -w --read-write -s --sync -A --noatime -e --exec \
-t filesystem --type filesystem -c charset --charset charset -u umask \
signature.asc
Description: PGP signature

