From 934c891c61daac95ee6d8ebd92628e003cc33839 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 27 May 2007 16:57:55 +0000 Subject: 23475: call $service instead of 'cdrecord', in case we are using wodim. --- Completion/Unix/Command/_cdrecord | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_cdrecord') diff --git a/Completion/Unix/Command/_cdrecord b/Completion/Unix/Command/_cdrecord index f651e5954..602cd5e8e 100644 --- a/Completion/Unix/Command/_cdrecord +++ b/Completion/Unix/Command/_cdrecord @@ -89,14 +89,14 @@ if [[ -n $state ]]; then case $state in device) - devices=( ${(f)"$(_call_program device cdrecord -scanbus 2>/dev/null \ + devices=( ${(f)"$(_call_program device $service -scanbus 2>/dev/null \ |grep '^ '|cut -c2-6,23-|sed 's/ /:/')"} ) _describe -t devices device devices && return ;; blank) btypes=( 'help:display list of available blanking types' - ${${${${(f)"$(_call_program blank-types cdrecord blank=help 2>&1)"}[2,-1]}#?}/[[:blank:]]##/:} + ${${${${(f)"$(_call_program blank-types $service blank=help 2>&1)"}[2,-1]}#?}/[[:blank:]]##/:} ) _describe -t blank-types 'blanking type' btypes && return ;; -- cgit 1.4.1