From 07db41e38f5d4da5499cc3eec6dfe01fb738c415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 30 Dec 2009 23:05:29 +0200 Subject: [PATCH] Don't list non-working "rtc" in --device completions. --- contrib/rtcwake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/rtcwake b/contrib/rtcwake index 42637e6f..0169fb61 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 ;;