Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6642147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:53:46+00:00 2026-05-25T23:53:46+00:00

when i do echo $PATH is see: /opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql84/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/mysql/bin:/usr/X11/bin I want to move the /opt/local

  • 0

when i do

 echo $PATH

is see:

  /opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql84/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/mysql/bin:/usr/X11/bin

I want to move the /opt/local stuff to the end of the path because it is causing errors with gitk. (the same error specified here: Starting gitk Error)

I’ve already commented out the export PATH line in my .bash_profile, but my path is STILL set like the above. I also checked etc/paths.d but don’t see anything for mac ports in there. I commented out a similar export PATH line in my .profile. Again my path is STILL containing /opt/local in the front. WHERE ELSE is this being set?

I’m using mac os snow leopard 10.6.8

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:53:46+00:00Added an answer on May 25, 2026 at 11:53 pm

    On my system, MacPorts installer put it into /etc/profile.

    The (full?) list of files is as follows (in the order bash reads them):

    /etc/profile
    /etc/bashrc
    ~/.bash_profile
    ~/.bash_login
    ~/.profile
    ~/.bashrc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to echo the PATH variable, with the goal to get the same
echo date(w,strtotime(date(Y-m-d))); echo date(w,strtotime(date(Y年m月d日))); Save it as utf8.You'll see the second is bigger than
I have the following code inside a Makefile: # Root Path echo What is
I want to write a PHP script which will first detect URL's and see
i want echo only value name no all. my array: $file_list[] = array( 'name'
I have a bash script which calls another bash script, like so: #!/bin/bash echo
If I execute set PATH=%PATH%;C:\\Something\\bin from the command line ( cmd.exe ) and then
I have this batch file @ECHO OFF ECHO Please Enter Path of the View,
Currently I created mySQL database with the reference path of images and some additional
echo $_POST[name]; //returns the value a user typed into the name field I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.