[PATCH] Bash 3.x completion support

Erik Wenzel erik at code.de
Fri Sep 8 19:22:10 CEST 2017


> On 8. Sep 2017, at 13:15, Graham Lyons <graham at grahamlyons.com> wrote:
> 
> Hello,
> 
> I'm using password-store on OSX (latest, 10.12.6) which comes with Bash version 3.2.57. I get errors when using the completion as the `compopt` command doesn't exist before Bash 4. Avoiding use of `compopt` still seems to allow the completion to work (I'm guessing there's something missing) so I've prepared a patch which tests for its existence first.
> 
> I hope this is in the right format - let me know if there are any problems.
The content of your patch fixes my osx bash3 completion issues. Thanks! The
patch format isn’t right I think. It didn’t apply for me with `git apply a.patch` and I pasted the content off from your email into `a.patch`. How do
you created the patch? 

When I create the patch using `git format-patch master --stdout > ../bash3.patch` I get an email header, a stats section and then the patch like
yours.

cheers


More information about the Password-Store mailing list