summaryrefslogtreecommitdiff
path: root/completions/ypmatch
diff options
context:
space:
mode:
Diffstat (limited to 'completions/ypmatch')
-rw-r--r--completions/ypmatch4
1 files changed, 2 insertions, 2 deletions
diff --git a/completions/ypmatch b/completions/ypmatch
index 584b0d04..99d80c43 100644
--- a/completions/ypmatch
+++ b/completions/ypmatch
@@ -13,12 +13,12 @@ _ypmatch()
if [[ $cmd == ypmatch && $cword -eq 1 && ${#words[@]} -eq 3 ]]; then
map=${words[2]}
COMPREPLY=( $( compgen -W '$( ypcat $map 2>/dev/null | \
- cut -d':' -f 1 )' -- "$cur") )
+ cut -d':' -f 1 )' -- "$cur" ) )
else
[[ $cmd == ypmatch && $cword -ne 2 ]] && return 0
COMPREPLY=( $( compgen -W \
'$( printf "%s\n" $(ypcat -x 2>/dev/null | \
- cut -d"\"" -f 2) )' -- "$cur") )
+ cut -d"\"" -f 2) )' -- "$cur" ) )
fi
return 0