From a267832ddf4150652fde3936858841bb2edbd9ae Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 25 Jun 2003 09:03:04 +0000 Subject: 18631: returning too early breaks prefix-needed style set to false --- Completion/AIX/Command/_smit | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Completion/AIX') diff --git a/Completion/AIX/Command/_smit b/Completion/AIX/Command/_smit index 48397b5b0..f02229501 100644 --- a/Completion/AIX/Command/_smit +++ b/Completion/AIX/Command/_smit @@ -18,10 +18,8 @@ _arguments -C \ '-v[verbose]' \ '-x[do not run any execute commands]' \ '-X[do not run any commands]' \ - '1:fastpath:->fastpath' && return 0 + '1:fast path:->fastpath' -[[ "$state" = fastpath ]] && +[[ "$state" = fastpath ]] && (( $+commands[odmget] )) && _wanted fastpaths expl 'fast path' compadd \ $(odmget sm_cmd_hdr sm_name_hdr|sed -n 's/^ id = \"\(.*\)\"/\1/p') - - -- cgit 1.4.1