[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 07db41e38f5d4da5499cc3eec6dfe01fb738c415

Ville Skyttä ville.skytta at iki.fi
Wed Dec 30 21:06:20 UTC 2009


The following commit has been merged in the master branch:
commit 07db41e38f5d4da5499cc3eec6dfe01fb738c415
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Dec 30 23:05:29 2009 +0200

    Don't list non-working "rtc" in --device completions.

diff --git a/contrib/rtcwake b/contrib/rtcwake
index 42637e6..0169fb6 100644
--- a/contrib/rtcwake
+++ b/contrib/rtcwake
@@ -17,7 +17,7 @@ _rtcwake()
             return 0
             ;;
         --device|-d)
-            COMPREPLY=( $( command ls -d /dev/rtc* 2>/dev/null ) )
+            COMPREPLY=( $( command ls -d /dev/rtc?* 2>/dev/null ) )
             COMPREPLY=( $( compgen -W '${COMPREPLY[@]#/dev/}' -- "$cur" ) )
             return 0
             ;;

-- 
bash-completion



More information about the Bash-completion-commits mailing list