Opened 7 years ago

Closed 3 years ago

#54278 closed defect (fixed)

pass @1.7_0+bash: bash completion problem

Reported by: markabney Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: judaew (Vadym-Valdis Yudaiev)
Port: pass

Description

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.

Change History (6)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Keywords: bashrc removed
Owner: set to john@…
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers pass).

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Is issue 2 still a problem in pass 1.7.1?

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Owner: john@… deleted

comment:4 Changed 7 years ago by mf2k (Frank Schima)

In ddd47c7d0b1e11fd49f1af94906d4f212a4d0a1b/macports-ports:

pass: Add note to use +bash variant.

See: #54278

comment:5 Changed 3 years ago by judaew (Vadym-Valdis Yudaiev)

Cc: judaew added

comment:6 Changed 3 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.