I have been using the .pkg to reinstall MacPorts. I guess that does not check.
Barry Barry > On 29 Jan 2017, at 02:52, Daniel J. Luke <dl...@geeklair.net> wrote: > > I think only the pkg installers do that - and they're supposed to not edit > the $PATH if $prefix is already in there. > > (ie if you upgrade using `port selfupdate` I don't think you have that > problem). > > Or am I mistaken? > >>> On Jan 28, 2017, at 4:56 PM, Barry <ba...@barrys-emacs.org> wrote: >>> On 28 Jan 2017, at 16:37, Christopher Jones <jon...@hep.phy.cam.ac.uk> >>> wrote: >>> Hi, >>> >>> It would be better yet if whatever it is that does this first checks to see >>> in the path it is about to add is already in the users PATH, and does not >>> add it again if already there… >> >> That would be an improvement. >> >> I would also like a way to say never edit my .bash_profile. >> Maybe a comment line specially formated. >> >> # MacPorts: no-edit-path >> >> Barry >> >>> Chris >>> >>>> On 28 Jan 2017, at 4:31 pm, Barry Scott <ba...@barrys-emacs.org> wrote: >>>> >>>> I want to be able to stop MacPorts Installation from editing my >>>> .bash_profile. >>>> As it happens I already set all the env var that are needed my self. >>>> >>>> Is there a “do-not-edit-bash-profile” settings somewhere? >>>> >>>> So far I have 3 sets of the settings in the same file. >>>> >>>> Barry > > -- > Daniel J. Luke > > >