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

This commit is contained in:
Ville Skyttä 2009-12-30 23:05:29 +02:00
parent 9c402241c4
commit 07db41e38f

View File

@ -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
;;