Ruby Environment Variables
Ruby interpreter uses the following environment variables to control its behavior. ENV object contains a list of all the environment variables currently set.
variable | description |
---|---|
DLN_LIBRARY_PATH | Dynamic load module search path. |
HOME | When no arguments are passed to the Dir :: chdir, to move to the directory. File :: expand_path also be used to extend the "~." |
LOGDOM | When no parameters are passed to the Dir :: chdir not set the environment variable HOME, to move to the directory. |
PATH | Search path execution of the child process, and after a specified -S option, search path for Ruby programs. Each path separated by a colon (in the DOS and Windows separated by semicolons). |
RUBYLIB | Library search path. Each path separated by a colon (in the DOS and Windows separated by semicolons). |
RUBYLIB_PREFIX | RUBYLIB for modifying the search path, by using the format path1; path2 or path1path2, the library was replaced prefix path1 path2. |
RUBYOPT | Ruby interpreter pass command-line options. When taint mode is ignored (wherein, $ SAFE greater than 0). |
RUBYPATH | After specifying the -S option, search path for Ruby programs. Higher priority than the PATH. When taint mode is ignored (wherein, $ SAFE greater than 0). |
RUBYSHELL | Specifies the shell command execution when used. If the environment variable is not set, the SHELL or COMSPEC. |
For Unix, use the env command to see a list of all environment variables.
HOSTNAME=ip-72-167-112-17.ip.secureserver.net
RUBYPATH=/usr/bin
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
SSH_CLIENT=122.169.131.179 1742 22
SSH_TTY=/dev/pts/1
USER=amrood
JRE_HOME=/usr/java/jdk/jre
J2RE_HOME=/usr/java/jdk/jre
PATH=/usr/local/bin:/bin:/usr/bin:/home/guest/bin
MAIL=/var/spool/mail/guest
PWD=/home/amrood
INPUTRC=/etc/inputrc
JAVA_HOME=/usr/java/jdk
LANG=C
HOME=/root
SHLVL=2
JDK_HOME=/usr/java/jdk
LOGDIR=/usr/log/ruby
LOGNAME=amrood
SSH_CONNECTION=122.169.131.179 1742 72.167.112.17 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
RUBYLIB=/usr/lib/ruby
G_BROKEN_FILENAMES=1
_=/bin/env
This switched http://codingdict.com/article/6831