* Re: Bug#426266: zsh: wodim completion complains about missing cdrecord
[not found] <20070527150227.GA7566@m1.dommu>
@ 2007-05-27 16:23 ` Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-05-27 16:23 UTC (permalink / raw)
To: Markus Järvinen, 426266; +Cc: zsh-workers
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
;;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-27 16:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20070527150227.GA7566@m1.dommu>
2007-05-27 16:23 ` Bug#426266: zsh: wodim completion complains about missing cdrecord Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).