Updating path in bash shell

posted by | Leave a comment

How do I set the environment variable and have it stay in effect after the script finished?Thanks$ csh % echo $LD_LIBRARY_PATH /opt/oracle/product/8.1.7/lib:/opt/sybase/ASE1200/OCS-12_0/lib/ % setenv LD_LIBRARY_PATH /tmp:$LD_LIBRARY_PATH % echo $LD_LIBRARY_PATH /tmp:/opt/oracle/product/8.1.7/lib:/opt/sybase/ASE1200/OCS-12_0/lib/ % % % echo 'setenv LD_LIBRARY_PATH /tmp:$LD_LIBRARY_PATH' If you don't source the script then the script would be executed in a different shell (sub shell) which has nothing to do with the parent shell.

But of course, it's not effective in any programs or scripts called by the calling program.It does not get re-interpreted if JAVA_HOME changes later.When I use Git Bash (on Windows), I cannot run any executable without specifying its full path, although it is located in a folder which is in my PATH variable. Thanks @Tom for pointing me to the right direction.By doing the mentioned procedure you'll expose your System Variable in the User Variables.I have one long running script which does some work with AWS.

Leave a Reply

  1. Free phone chat line no credit card 17-Sep-2017 09:31

    Elle était vêtue d’une veste de tailleur ouverte et un chemiser blanc ouvert qui laissait entrevoir son soutien-gorge, elle portait des lunettes qui lui donnait un air de salope bien qu’elle ait une excellente vue mais je sais qu’elle adorait etre lookée. – Tiens donc quelle surprise – Ah salut Annabelle comment vas-tu ?

  2. Libya ladyboy chat 27-Nov-2016 10:45

    We do not provide dating consultancy but we make best effort to help you start dating.

  3. bone age dating archaeology 26-Feb-2017 19:31

    We also, we will be glad to know your opinion and update our sexcams list regularly according to your preferences. So, if you have some question or want to suggest a sex cam site for our list, feel free to send us an email.

  4. sex dating in lebam washington 25-Nov-2017 09:23

    Others force themselves to fit into a pair of jeans 2 sizes too small for them.

  5. ahmad24 dating site 31-Oct-2017 16:04

    Common rules for all anonymous chat rooms: - All the secrets you share in Anti Chat, must stay in Anti Chat- Teens aged less than 17 are not allowed to download and use this app- All international and private chats must remain free of trolling, bullying and agitating. You are joined into a chat room with all these people you dont even know.

  6. Telugu free online sex chat videos 23-Jun-2016 02:16

    The doors are open Wednesdays through to Sundays from 10pm on – plus the local drag queens host a seemingly endless array of special events and theme nights; POP on Thursday night’s is a reliable staple.

njsinglesdating com