Fining PATH (and MANPATH) once and for all

I think the correct list of directories in PATH should be:
I am trying to sort thru the endless confusion and set up PATH (and MANPATH) right, once and for all. Every package I install seems to have its own idea of what these variables should be.
I could set up a wrapper script for every installed command - but some subsystems, like Aquamacs and Python, let you create and use subshells. If the PATH in your subshell isn't the same as the one you use every day in bash, you could create bugs which are nearly impossible to track down.
My solution is to create $HOME/.setShells.sh -- which sets a uniform set of paths (and which will probably rewrite man.conf in the bargain). But I want to make sure that

Gack.
Please ignore this accidental posting and read the one titled
Fixing PATH and MANPATH once and for all
instead ... Sorry.

Similar Messages

  • Fixing PATH (and MANPATH) once and for all

    I think the list of directories in PATH should be:
    /Users/cb/bin:
    /opt/local/bin:
    /opt/local/sbin:
    /usr/local/bin:
    /usr/bin:
    /bin:
    /usr/local/sbin:
    /usr/sbin:
    /sbin:
    /usr/X11R6/bin:
    /usr/local/teTeX/bin/powerpc-apple-darwin-current
    Do you agree? Comments and suggestions welcome.
    Background:
    I am trying to sort thru the endless confusion and set up PATH (and MANPATH) right, once and for all. Every package I install seems to have its own idea of what these variables should be.
    I could set up a wrapper script for every installed command - but some subsystems, like Aquamacs and Python, let you create and use subshells. If the PATH in your subshell isn't the same as the one you use every day in bash, you could create bugs which are nearly impossible to track down.
    My solution is to create $HOME/.setShells.sh -- which sets a uniform set of paths (and which will probably rewrite man.conf in the bargain). But I want to make sure that I'm choosing the right baseline, which is what the list above is supposed to be.
    I'd appreciate your thoughts and/or assistance.

    Correct is what's correct for you. You have to consider and repect how the vanilla system sets up the environment, and realize that the software you install and configure to make the machine yours will be different for everybody.
    Your list looks reasonable. Of course we all know that PATH is searched in the order listed, so your ~/bin takes precedence over everything, and stuff you install in /opt and /usr/local takes precedence over the vanilla system.
    You don't need a wrapper for every command. Environment variables are inherited. You simply need to set this stuff up in your ~/.bashrc and everything you run from the shell will inherit the environment. I think PATH may be exported automatically, but it never hurts to do so explicitly. So set those variables with lines like ...
    export PATH=
    export MANPATH=
    It's important to understand the subtle difference between executing a shell command file and sourceing it.
    bash# ./file
    ... will run the file in a subshell, so any variables and environment changes will only be known to the subshell. Your interactive shell is the parent process of the subshell.
    bash# . ./file
    ... will run the file in the current shell rather than forking a subshell, so any variables, functions, aliases, or environment changes will remain in effect.
    When a shell starts, your ~/.bashrc is sourced, not executed.
    Message was edited by: b3and88
    because he can't spel

  • Where do PATH and MANPATH definitions go for OSS12.4 in Solaris 11.2?

    ** Newbie alert **
    Hello,
    This link says what to add to PATH and MANPATH for a new Solaris Studio 12.4 installation
    but not where to put the PATH and MANPATH entries (preferably for all users).
    Setting Up Access to the Developer Tools and Man Pages - Oracle® Solaris Studio 12.4: InstallationGuide
    Note that my "installation" consisted of downloading the appropriate Tarfile and then unpacking it - so this comment is confusing:
    "If you did not enable the installer to create symbolic links in /usr/bin and /usr/share/man, you might    need to change your PATH   and MANPATH  environment variables to enable use of the Oracle Solaris Studio 12.4 software."
    Another confusing entry in the Solaris 11.2 documentation says "the MANPATH definition is no longer required in Solaris 11".
    Sincerely,
    Kent

    Hi Kent,
    If you installed from the tar file you will need to add the directory to your PATH and MANPATH variables.   The steps are platform specific and are listed below:
    On Oracle Solaris platforms
    Add the path /install-dir/solarisstudio12.4/bin to your PATH environment variable.
    Add the path /install-dir/solarisstudio12.4/man to your MANPATH environment variable.
    On Linux platforms
    Add the path /install-dir/oracle/solarisstudio12.4/bin to your PATH environment variable.
    Add the path /install-dir/oracle/solarisstudio12.4/man to your MANPATH environment variable.
    For a more detailed discussion PATH and MANPATH you can review the Solaris documentation on "Setting Environment Variables".  The location to that information is located here:
    https://docs.oracle.com/cd/E19683-01/806-7612/customize-8/index.html
    You might find this link helpful too:
    https://docs.oracle.com/cd/E36784_01/html/E36818/userconcept-39855.html#scrolltoc
    Note - When you install from a tar file you cannot get support or patches for the product from Oracle. If you want such support you must use a package installer. See Chapter 2, Installing Oracle Solaris Studio 12.4 on Oracle Solaris 10 and Linux or Chapter 3, Installing Oracle Solaris Studio 12.4 On Oracle Solaris 11.
    Also, if you haven't installed the latest Solaris 11.2 SRU then you will also need to install the required system libraries.   Here's a link to the instructions:
    https://docs.oracle.com/cd/E37069_01/html/E37072/gouaw.html#scrolltoc
    HTH

  • I have a business and I use iCal for all my appointments, how can I print receipts from my MacBook to a receipt printer? I want my clients to have a receipt of the services that they have paid for, can anyone HELP ME PLEASE?

    I have a business and I use iCal for all my appointments, how can I print receipts from my MacBook to a receipt printer?
    I want my clients to have a receipt of the services that they have paid for, can anyone HELP ME PLEASE?

    Well...I went to the modem (Westell, WireSpeed), found the NAT settings, once again, I'm WAY over my head, I am assuming this is a TCP connection (as opposed to a UDP) and per Lorex my mobile devices will use port 1025.  So I gave it a "global port range" of 1-10 and I indicated that the "base host port" was 80, 1025, & 9000 (ports 1,2,3).  When I selected the 'enable' it asked for a "host devise" my choices are my IPhone, IMac and the IP address for the dvr, so I choose the dvr.  I still cannot connect and canyouseeme still can NOT find these open ports.  This is taking up my whole day! I don't know how people figure this stuff out.

  • Creating a Master virtual hard disk and using the same for all other VM's

    Hi,
    We would like to create a master virtual hard disk and use the same for all other VM's. Can we do that ?
    my requirements :
    1) create 10 VM's
    2) first create a master virtual hard disk with win OS and use the same to create the 10 VM's.
    3) After creating the VM's change the HDD size.
                  -- if i have created master virtual disk with 500GB , and use the same for creating a virtual machine. can we change the HDD size to 1TB ?
    After creating the VM's ,i will change the system names and activate the windows accordingly.
    Will there be any implications ,if we can/will do like this.
    Thanks.

    Hi Suren424,
    I think Using Differencing Disks may cover your needs .
    Please refer to following setps:
       "Create the Parent Virtual Machine Configuration and Virtual Hard Disk
        Install the Operating System, updates, and common software
        Generalize the installation
        Prepare the parent virtual hard disk
        Create the differencing disks
        Create virtual machines that use the differencing disks
    For details please refer to follwing link:
    http://social.technet.microsoft.com/wiki/contents/articles/1393.hyper-v-virtual-machine-vm-parent-child-configuration-using-differencing-disks.aspx
    Hope this helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • HT201251 I want to use 30  ipads to run kiosk software in my restaurant. Can I use one Apple ID (and one credit card) for all devices

    I want to use 30  ipads to run kiosk software in my restaurant. Can I use one Apple ID (and one credit card) for all devices?

    Alternatively you can always manage your iPads (does not matter how many) with a single apple id and all reporting to your account under "find my device" service. Keeping an eye on all your units. Additionally as you mentioned these are for your Restaurant you may find the solutions offered by this company who creates apps and hardware for this purpose: http://www.spartakioskpro.com
    Additionally if you expand beyond those 30 iPads to say 300 you will want to enable or plan on MDM as your best option to automate every ipad to use the same profile and app and ios configuration while also keeping a close eye on all of them via online MDM services like: https://meraki.cisco.com/products/systems-manager
    Here is a pic

  • Why can't I enter a multi day event once and have it show for all the relevant days?

    If I enter an event that begins on, say, June 1 and concludes on June 3, I only see it on my monthly calendar for June 1.  Do I have to create 3 separate events?

    It definitely should span the four days. Something is wrong. Try to Reset your device.
    Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears (ignore the Slide to Power Off that shows up first).

  • Three Physical Samples withdraw from inspection lot 04  and then result record for all three

    Dear Gurus,
    We have 3 quality labs and each lab is sent a separate samples to inspect certain characteristics once we receive material from production. I have created an inspection plan and mapped these three labs as  work center in operation and then assigned MICs under each operation to inspect.
    Now my issue is how to map separate 3 samples to inspection lot generated from production  ( type-4) and also how to configure that to inspection plan.
    I have to result record for all these three physical sample as withdrawn from Lot based upon inspection plan as mentioned above.
    I can mention sample drawing procedure in inspection plan but how to map actual sample there.
    Any help will be greatly appreciated.
    Regards,
    Satish

    Hi Satish
    You are creating three operation for depicting three testing Labs.
    Against each lab (operation) you had assigned MICs as per your requirement.
    Now you have to assign a SDP along with inspection point type 200 for physical sample in task list.
    After prod confirmation system will create inspection lot along with a sample by default for 1st operation.
    For other operations you have to create samples manually referring the same inspection lot (QPR6).Remember to click ' Create Insp points' and mention operation.
    Release the samples in QPR4.
    Now when you go for result recording system would ask first for operation, so select the operation , then system will ask for insp point (sample no).There click on assign insp point , so system will provide the Sample no which were created in QPR6 for that particular operation.
    Please follow the steps and revert.
    Regards
    D Mohanty

  • If i have a work ipad with a work email and a shared icloud for all employees, can i set up a second itunes and icloud account with a separate email address on the same ipad for my personal stuff?

    i am a teacher and my school has given all of us a ipad to use. it is set up with my school email and a shared itunues and icloud account. they have told us we can use it for anything that can be used for education purposes. i have downloaded books and other items that i have marked up for my use. however if there is ever a problem i cant identify my applications or books if other teachers have downloaded the same apps or books as well as my documents. is there a way to set up a 2nd itunes account and icloud account so that i may use that when backing up anything that would be personalized by me so that i can find what is rightfully mine. they are ok with it but were unsure how to do this, so can anyone help me? thanks

    Sorry, you cannot use more than one iTunes account at a time.

  • Firefox keeps asking me what program to use to open file types even though I have selected one and checked "do this for all files of this type" going foward

    I am working in Windows and every time I open an attachment, Firefox asks what program to use to open files of this type. I always select the proper program and then check the box that says use this program for all future files of this type. In spite of that, the program continues to ask for every file. How do I turn off this feature and just have the program remember the correct program to use for each type of file extension?

    Regardless of your download preferences, web servers can trigger a download prompt by sending either the ''Content-Type: application/octet-stream'' or the ''Content-Disposition: attachment'' header. You can check if that's the case by examining the server response headers in the [https://developer.mozilla.org/docs/Tools/Web_Console Web Console].
    For the latter problem install the InlineDisposition add-on and see if it helps.
    * https://addons.mozilla.org/firefox/addon/inlinedisposition/
    If the problem persists, post back here with either an example link or a screenshot of the relevant response headers in the Web Console.
    * [[How do I create a screenshot of my problem?]]

  • Do I have to cut and paste album artwork for all the albums in my library?

    So my 4gb ipod 1st gen is pretty much dead so I've bought a 3rd gen. 8gb nano, upgraded my iTuunes software to 7.5 and syncd my library onto my new iPod. All songs I've bought from iTunes have album artwork and one other old album I uploaded myself alos has album artwork but all 130 of the other albums in my library do not have artwork.
    I've gone to Advanced> Get Album Artwork, but I get the error message "could not find some artwork". I can't understand why only one of my uploaded albums has artwork visible on iTunes but all of the others don't? Do I really ahve to cut and past from Amazon for each album? Hope the anser is "No" becasue that's really time consuming!

    I guess you've figured out that the answer is "yes". Remember you can do groups of songs (like an album) at a time by selecting them and doing "get info". Also, by saving album art in the mp3 file, you can save it permanently.

  • Changes like password and removal of roles for all users

    Hi
    i want to change password for all users and remove single roles from all users.When i am doing this in SU10 changes are not reflecting for users.Please help reg this
    Vinod

    Me too...I have never been able to remove roles from multiple users with SU10.  I don't know if it's a bug or (more likely) just a confusing screen, but in 4.7 it never worked for me.

  • How can I deploy EFS using Group Policy and automatically encrypt computers for ALL users who login?

    How can I deploy EFS using Group Policy and Active Directory with a goal to automatically encrypt computers for ALL users who login? (NOT an option for me to use BitLocker)
    I was asked to deploy EFS to encrypt the user my documents folder and profile on all of the users laptops. The laptops are in common areas (board meeting rooms, etc) and security of files is a must.
    I successfully created a recovery certificate in AD. I created an OU and setup an EFS policy and users can now login and select to encrypt their own files. The issue is that management would like to have automaticy Encrypt ALL users my documents AUTOMATICALLY
    when a user login.
    Can this be done?
    Please help

    Hi,
    Any update?
    Just checking in to see if the suggestions were helpful. Please let us know if you would like further assistance.
    Best Regards,
    Andy Qi
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Andy Qi
    TechNet Community Support

  • I have 3 guest lists names. How do I create a total for each list and a fourth total for all of them combined?

    I am getting married and I want to stay organized. I have a spread sheet for my guest list. It is 3 columns/lists (my family, his family, and friends). How do I make a running total of each list and a fourth total of all of them combined?
    Thanks so much!!!!

    If I understand your problem you want to keep a list for the bride, the groom and friends as well as a total of all guests.
    The total is the easiest.  If you have the other three numbers then you can use the function SUM() to add those three together.
    The rest of the problem is solved by assumeing:
    1) the lists are in columns
    2) the header does not count in the total
    taking the difference of the total rows and the blank rows minus 1 will give you the total guest names in the a column.
    The contents of cell:
    C2 =ROWS(Bride)-COUNTBLANK(Bride)-1
    C3=ROWS(Groom)-COUNTBLANK(Groom)-1
    C4=ROWS(Friends)-COUNTBLANK(Friends)-1
    C5=SUM(G2:G4)

  • Firefox slow and unresponsive with facebook and zynga and then locks up for all other tabs open

    I finally had to uninstall the beta 4 version as I couldn't take the issues any longer. The browser would become slow and then totally unresponsive mostly when using facebook and zynga. however, all tabs would become slow and unresponsive and would have to be rebooted. It wouldn't be 5 minutes and it would have to be done again. Even without facebook/zynga loaded in a tab, the entire browser is unbelievably slow. I am running mac os x 10.5.8.
    I went back to the old version until I hear back as I just don't have time to sit and wait and wait and wait only to have to reboot the program constantly.

    I found a "work around". I installed Incredible Bookmarks 0.7.3. That allows me to add an additional Bookmarks Toolbar without causing the bouncing problem.
    Putting bookmarks in the IB bar was a little tricky. It allows customization, but only to the extent of choosing bookmarks by topic or by a subdirectory of the Bookmarks Menu. What I actually put on the toolbar are such subdirectories (or folders), so I normally could only put one at a time. (This problem doesn't exist with the Firefox Bookmarks Toolbar, which allows you to copy subfolders, not just individual bookmarks).
    I solved the problem by moving the additional folders I wanted to put in the IB Toolbar into a folder I (cleverly) called "IB Toolbar", then selected that for the actual Toolbar. The result: a row of folders, exactly what I wanted. (Actually, it's a second row of folders, since I still have the original Firefox Bookmarks Toolbar.)
    I'd still prefer MultiRow, but that doesn't appear to be working with Firefox 3.6.18 and higher, so until I upgrade to Firefox 5 (and see if the Plus version will work) this will have to do.

Maybe you are looking for