how to setup the environment in Bash shell?

0 votes
Hello, I want to install PSRCHIVE in my Ubuntu,its shell is bash, but in installation instruction the command lines about environment setup are in C shell. I want to know how to setup the environment variables in Bash shell.
asked Apr 16, 2014 by anonymous

1 Answer

0 votes
Hello anonymous,

This question is not really about PSRchive but about shell configuration. However, for your convenience, here are some pointers:

The environment variables that need to be setup in Bash shell (and any other shell) are the exact same variables that need to be setup in C-shell.

You can find a very good documentation of the bash shell here:

http://www.tldp.org/LDP/abs/html/index.html

In particular this section is relevant to you:

http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_02.html

In general, the setup of variables is nearly the same as in C-shell, you just need to replace all environment variable calls of the form:

setenv VARIABLE value

with the Bash equivalent:

export VARIABLE="value"

 

Hope this helps,

Stefan
answered Apr 17, 2014 by sosl (780 points)
...