[MacPorts] #63450: mcfly: scripts to source were moved to completion directories when they are not completion scripts

MacPorts noreply at macports.org
Sun Sep 5 07:47:57 UTC 2021


#63450: mcfly: scripts to source were moved to completion directories when they are
not completion scripts
--------------------+--------------------
 Reporter:  Tatsh   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  mcfly
--------------------+--------------------
 These are not Bash completion scripts. See
 [https://github.com/cantino/mcfly/blob/master/mcfly.bash mcfly.bash].
 These are scripts for each individual shell to source usually in a file
 like `~/.profile`.

 This part of the commit should be reverted as now everyone gets (in Bash)
 `-bash: mcfly_prompt_command: command not found` unless they source the
 file from its new location (or run `mcfly <TAB>` in Bash with bash-
 completion working). And the [https://github.com/macports/macports-
 ports/commit/262d8a2e563d282b86d67abc1f1cc8d40fcc0354 commit after this]
 should also be reverted because the notes are important.

 Workaround is to source from the new location: `source
 ${macports_prefix:-/opt/local}/share/bash-completion/completions || source
 ${macports_prefix:-/opt/local}/share/mcfly/mcfly.bash`.

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


More information about the macports-tickets mailing list