[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-79-g74a37e7
Igor Murzov
e-mail at date.by
Tue Dec 4 16:21:43 UTC 2012
The following commit has been merged in the master branch:
commit 7d591128a8baf91dfe3a461ae53f7acded4c7473
Author: Igor Murzov <e-mail at date.by>
Date: Tue Dec 4 18:40:51 2012 +0400
mount: Fix parsing /etc/fstab on *BSD.
This completion is still just a stub on *BSD, but now at least it does not
look like a complete mistake.
diff --git a/completions/mount b/completions/mount
index ffe6629..6818ac3 100644
--- a/completions/mount
+++ b/completions/mount
@@ -53,7 +53,8 @@ _mount()
# probably Cygwin
COMPREPLY=( $( compgen -W "$( mount | awk '! /^[ \t]*#/ {if ($3 ~ /\//) print $3}' )" -- "$cur" ) )
else
- COMPREPLY=( $( compgen -W "$( awk '! /^[ \t]*#/ {if ($3 ~ /\//) print $3}' /etc/fstab )" -- "$cur" ) )
+ # probably BSD
+ COMPREPLY=( $( compgen -W "$( awk '! /^[ \t]*#/ {if ($2 ~ /\//) print $2}' /etc/fstab )" -- "$cur" ) )
fi
} &&
complete -F _mount -o default -o dirnames mount
--
bash-completion
More information about the Bash-completion-commits
mailing list