The following commit has been merged in the master branch:
commit 7d591128a8baf91dfe3a461ae53f7acded4c7473
Author: Igor Murzov <[email protected]>
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

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to