Don't list non-working "rtc" in --device completions.
This commit is contained in:
parent
9c402241c4
commit
07db41e38f
@ -17,7 +17,7 @@ _rtcwake()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--device|-d)
|
--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" ) )
|
COMPREPLY=( $( compgen -W '${COMPREPLY[@]#/dev/}' -- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user