Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#426266: zsh: wodim completion complains about missing cdrecord



On Sun, May 27, 2007 at 06:02:27PM +0300, Markus Järvinen wrote:
> Typing "wodim blank=<TAB>" gives the following messages:
> 
> help  -- display list of available blanking types
> val)  -- 1::command not found: cdrecord

This should help.

Index: Completion/Unix/Command/_cdrecord
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_cdrecord,v
retrieving revision 1.6
diff -u -r1.6 _cdrecord
--- Completion/Unix/Command/_cdrecord	27 Oct 2006 17:48:48 -0000	1.6
+++ Completion/Unix/Command/_cdrecord	27 May 2007 16:16:52 -0000
@@ -89,14 +89,14 @@
   
   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
     ;;



Messages sorted by: Reverse Date, Date, Thread, Author