convert ksh functions to POSIX syntax

This commit is contained in:
Matt Hamilton 2015-09-28 12:57:28 -04:00
parent c2dde89fb3
commit 24df53a5fe
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
function _cask() { _cask() {
local ret=1 state local ret=1 state
_arguments \ _arguments \
':subcommand:->subcommand' \ ':subcommand:->subcommand' \

View File

@ -38,7 +38,7 @@
local -a args reply local -a args reply
function _virsh-domains() { _virsh-domains() {
local -a out local -a out
out=( ${${${${(f)"$(virsh list "$@")"}:#(---| Id)*}## #[0-9-]## ##}%% *} ) out=( ${${${${(f)"$(virsh list "$@")"}:#(---| Id)*}## #[0-9-]## ##}%% *} )
_describe -t domains "${${1#--}:-running} domains" out _describe -t domains "${${1#--}:-running} domains" out