[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-135-g3a39ac6
Ville Skyttä
ville.skytta at iki.fi
Wed Apr 27 15:42:09 UTC 2011
The following commit has been merged in the master branch:
commit 9dd125ee46afc9e6bd0dddd6e9014b5468aa93ba
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed Apr 27 17:21:06 2011 +0300
growisofs, _java_classes: Drop unnecessary compopt /dev/null redirections.
diff --git a/completions/dvd+rw-tools b/completions/dvd+rw-tools
index 1a0aec3..83ecd8c 100644
--- a/completions/dvd+rw-tools
+++ b/completions/dvd+rw-tools
@@ -12,7 +12,7 @@ _growisofs()
return 0
;;
-Z|-M)
- compopt -o nospace &>/dev/null
+ compopt -o nospace
_dvd_devices
return 0
;;
@@ -30,7 +30,7 @@ _growisofs()
# TODO: mkisofs options
COMPREPLY=( $( compgen -W '-dvd-compat -overburn -speed= -Z -M' \
-- "$cur" ) )
- [[ ${COMPREPLY[@]} == *= ]] && compopt -o nospace &>/dev/null
+ [[ ${COMPREPLY[@]} == *= ]] && compopt -o nospace
return 0
fi
diff --git a/completions/java b/completions/java
index 57b1787..f36fb7b 100644
--- a/completions/java
+++ b/completions/java
@@ -77,7 +77,7 @@ _java_classes()
$( compgen -f -X '!*.class' -- "$i/$cur" | \
sed -e '/\$/d' -e "s|^$i/||" )
)
- [[ $COMPREPLY == *.class ]] || compopt -o nospace &>/dev/null
+ [[ $COMPREPLY == *.class ]] || compopt -o nospace
# FIXME: if we have foo.class and foo/, the completion
# returns "foo/"... how to give precedence to files
--
bash-completion
More information about the Bash-completion-commits
mailing list