[MacPorts] #54278: pass @1.7_0+bash: bash completion problem

MacPorts noreply at macports.org
Sat Jun 3 22:35:57 UTC 2017


#54278: pass @1.7_0+bash: bash completion problem
-----------------------+-------------------
 Reporter:  markabney  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
 Keywords:  bashrc     |       Port:  pass
-----------------------+-------------------
 The pass password manager includes bash completion which is not compatible
 with the standard MacOS bash (v3.2.57). This problem only occurs with pass
 1.7 and above. In fact there are really two problems: 1. installing pass
 does not also configure the user's account to have bash completion, and 2.
 once proper configuration happens bash completion can fail with the error
 message "-bash: compopt: command not found".

 The solution to 1. is simple, either add the following line to .bashrc or
 instruct the user to do it him/herself:
 {{{
 [[ -r "/opt/local/share/bash-completion/completions/pass" ]] && source
 "/opt/local/share/bash-completion/completions/pass"
 }}}

 The solution to 2. (patch included) is mentioned here:
 https://lists.zx2c4.com/pipermail/password-store/2017-April/002869.html

 Ideally, 2. is fixed upstream, but so far that has not happened.

--
Ticket URL: <https://trac.macports.org/ticket/54278>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list