summaryrefslogtreecommitdiff
path: root/Completion/Darwin/Command/_say
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-08-27 13:31:04 +0200
committerAxel Beckert <abe@deuxchevaux.org>2018-08-27 13:31:04 +0200
commit719a715614f2182a76b30ad27a327d70a86f34f1 (patch)
treea437eb29da8035bf7c2e30506c08fe6f15719871 /Completion/Darwin/Command/_say
parent7da8d19c224860ae4d6aa3f077fca7f734f20d88 (diff)
parentef61918398517473b9b594690a3be375f607cebe (diff)
downloadzsh-719a715614f2182a76b30ad27a327d70a86f34f1.tar.gz
zsh-719a715614f2182a76b30ad27a327d70a86f34f1.zip
Merge tag 'zsh-5.5.1-test-2' into debian
Test release: 5.5.1-test-2.
Diffstat (limited to 'Completion/Darwin/Command/_say')
-rw-r--r--Completion/Darwin/Command/_say14
1 files changed, 7 insertions, 7 deletions
diff --git a/Completion/Darwin/Command/_say b/Completion/Darwin/Command/_say
index d687cfa11..1459c7372 100644
--- a/Completion/Darwin/Command/_say
+++ b/Completion/Darwin/Command/_say
@@ -28,9 +28,9 @@ case $state in
# also, not every file format supports bit-rate values
(( $+opt_args[--file-format] )) && {
tmp=( ${(f)"$(
- command $service \
+ _call_program bit-rates $words[1] \
--file-format=${opt_args[--file-format]##*:} \
- --bit-rate='?' 2> /dev/null
+ --bit-rate='\?'
)"} )
tmp=( ${tmp//[[:space:]]##/} )
}
@@ -46,9 +46,9 @@ case $state in
_message 'data format' && ret=0
else
tmp=( ${(f)"$(
- command $service \
+ _call_program data-formats $words[1] \
--file-format=${opt_args[--file-format]##*:} \
- --data-format='?' 2> /dev/null
+ --data-format='\?'
)"} )
tmp=( ${tmp//:/\\:} )
tmp=( ${^tmp/[[:space:]]##/[}\] )
@@ -56,13 +56,13 @@ case $state in
fi
;;
devices)
- tmp=( ${(f)"$( command $service -a '?' 2> /dev/null )"} )
+ tmp=( ${(f)"$( _call_program devices $words[1] -a '\?' )"} )
tmp=( ${tmp##[[:space:]]#[0-9]##[[:space:]]##} )
tmp=( ${tmp//:/\\:} )
_values 'audio device name or ID' $tmp && ret=0
;;
file-formats)
- tmp=( ${(f)"$( command $service --file-format='?' 2> /dev/null )"} )
+ tmp=( ${(f)"$( _call_program file-formats $words[1] --file-format='\?' )"} )
tmp=( ${tmp%%[[:space:]]##\(.*} )
tmp=( ${tmp//:/\\:} )
tmp=( ${^tmp/[[:space:]]##/[}\] )
@@ -76,7 +76,7 @@ case $state in
&& ret=0
;;
voices)
- tmp=( ${(f)"$( command $service -v '?' 2> /dev/null )"} )
+ tmp=( ${(f)"$( _call_program voices $words[1] -v '\?' )"} )
tmp=( ${tmp%%[[:space:]](#c2,)*} )
_values voice $tmp && ret=0
;;