Hi list.
mount completion is likely broken on *BSD since:
-----------------------------------------------
commit db8d3eeeebb78632cdfb23d37ff57bf4350912e1
Author: Igor Murzov <[email protected]>
Date: Sat Nov 19 23:06:56 2011 +0300
mount, umount: Add linux-specific completions.
-----------------------------------------------
Prior to this commit, completion for BSD was probably handled
by the same code path as for Linux. But in the aforementioned
commit a linux-specific completion was introduced, but the
previous code was replaced with a very simple one-line code
(which is also likely broken).
-----------------------------------------------
else
- # probably Linux
- if [[ $prev == -L ]]; then
- _linux_fstab -L < /etc/fstab
- elif [[ $prev == -U ]]; then
- COMPREPLY=( $( compgen -W '$(sed -ne "s/^[[:space:]]*UUID=\([^[:spa
ce:]]*\).*/\1/p" /etc/fstab )' -- "$cur" ) )
- else
- _linux_fstab < /etc/fstab
- fi
+ COMPREPLY=( $( compgen -W "$( awk '! /^[ \t]*#/ {if ($3 ~ /\//) print
$3}' /etc/fstab )" -- "$cur" ) )
fi
-----------------------------------------------
The problem is that i don't have any *BSD system around.
If somebody can test mount completion on *BSD and report
any issues, i will appreciate it :)
-- Igor
_______________________________________________
Bash-completion-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel