[MacPorts] #24003: Customizing bash 4.x

MacPorts noreply at macports.org
Wed Mar 10 10:19:33 PST 2010


#24003: Customizing bash 4.x
----------------------------------+-----------------------------------------
  Reporter:  slferris2@…          |       Owner:  raimue@…           
      Type:  defect               |      Status:  closed             
  Priority:  Normal               |   Milestone:                     
 Component:  ports                |     Version:  1.8.2              
Resolution:  invalid              |    Keywords:                     
      Port:  bash                 |  
----------------------------------+-----------------------------------------
Changes (by raimue@…):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 bash first reads `/etc/profile` (which sources `/etc/bashrc`) and then
 `~/.bash_profile`, but only if it is run as a login shell (called with
 argv[0] == "-bash" or explicitely requested by bash --login). Interactive
 shells only source `~/.bashrc` automatically. See the section INVOCATION
 in the bash man page for more details.

 This behavior did not change between bash 3 and 4. Probably bash isn't run
 as login shell any more in your case and therefore the file `/etc/bashrc`
 is not being read.

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


More information about the macports-tickets mailing list