summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/eject2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/eject b/bash-completion/eject
index 123829ea2..327ef1b71 100644
--- a/bash-completion/eject
+++ b/bash-completion/eject
@@ -15,7 +15,7 @@ _eject_module()
return 0
;;
'-x'|'--cdspeed')
- COMPREPLY=( $(compgen -W "$($1 -X)" -- $cur) )
+ COMPREPLY=( $(compgen -W "$(eject --listspeed 2>/dev/null)" -- $cur) )
return 0
;;
'-h'|'--help'|'-V'|'--version')