[MacPorts] #30664: bash-completion: document to source $prefix/etc/profile.d/

MacPorts noreply at macports.org
Fri Aug 12 11:35:28 PDT 2011


#30664: bash-completion: document to source $prefix/etc/profile.d/
---------------------------------+------------------------------------------
  Reporter:  blair@…             |       Owner:  raimue@…           
      Type:  enhancement         |      Status:  reopened           
  Priority:  Normal              |   Milestone:                     
 Component:  ports               |     Version:  2.0.1              
Resolution:                      |    Keywords:                     
      Port:  bash-completion     |  
---------------------------------+------------------------------------------

Comment(by blair@…):

 There's a couple of issues you're raising, the issue about ports adding
 completions into $prefix/etc/bash_completion.d isn't the issue here.

 Another issue is that other ports are doing to start dropping things into
 $prefix/etc/profile.d and the normal way to source them is to source them
 all instead of sourcing them individually.  This is how Linux works and
 where the bash code was copied from.

 To the dangerous point, I don't get that.  How is this dangerous if the
 port expects some environment set up to run?  Linux works this way, if you
 install a package it'll drop files in /etc/profile.d that are
 automatically sourced.  There's no suggestion that's dangerous???

 The last point is that right now the bash-completion port says to source
 $prefix/etc/bash_completion, but if you also source everything in
 $prefix/etc/profile.d, then because bash-completion drops a
 bash_completion.sh in there also, there will be double sourcing, which I
 would rather not see.

-- 
Ticket URL: <https://trac.macports.org/ticket/30664#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list