<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I upgraded my bash on OS X a few weeks ago because of this very issue. Thanks for looking into it!<div class=""><br class=""></div><div class="">Steve</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 3 Apr 2017, at 11:34, Harmen Stoppels <<a href="mailto:harmenstoppels@gmail.com" class="">harmenstoppels@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<br class=""><br class="">MacOS currently has not support for `compopt`. Autocompletion is pretty annoying now:<br class=""><br class="">"pass D [tab] -bash: compopt: command not found"<br class=""><br class="">In Docker they have had a similar issue: <a href="https://github.com/docker/docker/pull/16492" class="">https://github.com/docker/docker/pull/16492</a>.<br class=""><br class="">Below is a patch<br class=""><br class="">From 1ed0edef3c87861f209e6596694291a743d15ca4 Mon Sep 17 00:00:00 2001<br class="">From: Harmen Stoppels <<a href="mailto:harmenstoppels@gmail.com" class="">harmenstoppels@gmail.com</a>><br class="">Date: Mon, 3 Apr 2017 11:51:54 +0200<br class="">Subject: [PATCH] Use compopt only if available<br class=""><br class="">---<br class=""> src/completion/pass.bash-completion | 4 ++--<br class=""> 1 file changed, 2 insertions(+), 2 deletions(-)<br class=""><br class="">diff --git a/src/completion/pass.bash-completion b/src/completion/pass.bash-completion<br class="">index 456485b..27a46e7 100644<br class="">--- a/src/completion/pass.bash-completion<br class="">+++ b/src/completion/pass.bash-completion<br class="">@@ -54,7 +54,7 @@ _pass_complete_entries () {<br class=""> # The only time we want to add a space to the end is if there is only<br class=""> # one match, and it is not a directory<br class=""> if [[ $i -gt 1 || ( $i -eq 1 && -d $firstitem ) ]]; then<br class="">- compopt -o nospace<br class="">+ type compopt &>/dev/null && compopt -o nospace<br class=""> fi<br class=""> }<br class=""><br class="">@@ -88,7 +88,7 @@ _pass()<br class=""> init)<br class=""> if [[ $lastarg == "-p" || $lastarg == "--path" ]]; then<br class=""> _pass_complete_folders<br class="">- compopt -o nospace<br class="">+ type compopt &>/dev/null && compopt -o nospace<br class=""> else<br class=""> COMPREPLY+=($(compgen -W "-p --path" -- ${cur}))<br class=""> _pass_complete_keys<br class="">--<br class="">2.12.2<br class=""></div>
_______________________________________________<br class="">Password-Store mailing list<br class=""><a href="mailto:Password-Store@lists.zx2c4.com" class="">Password-Store@lists.zx2c4.com</a><br class="">https://lists.zx2c4.com/mailman/listinfo/password-store<br class=""></div></blockquote></div><br class=""></div></body></html>