diff options
author | David Paleino <dapal@debian.org> | 2013-11-04 17:58:57 +0100 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2013-11-04 17:58:57 +0100 |
commit | 059a87a5936cfebfd2d71ab8057002cafb2ea051 (patch) | |
tree | 7fafa4bb39a443ba4d49fccc852193adfea93564 /completions/ypmatch | |
parent | 30649a02707d24744853f84946f744fdcf7c2757 (diff) | |
download | bash-completion-059a87a5936cfebfd2d71ab8057002cafb2ea051.tar.gz |
Imported Upstream version 2.1upstream/2.1
Diffstat (limited to 'completions/ypmatch')
-rw-r--r-- | completions/ypmatch | 4 |
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 |