The environment-variables tag has no wiki summary.
2
votes
3answers
64 views
What is the difference between ./script and . ./script? [closed]
Possible Duplicate:
Using ‘.’ to execute files in bash
I was trying to figure out how to export my environmental via script instead of changing my .bashrc file.
I found this old useful ...
3
votes
3answers
64 views
Bash shells with different environment variables
I want to somehow enter a different bash shell with some altered environment variables.
For example, if I run script bfin.sh and it contains something like
export PATH=/home/me/bfin2012:$PATH
I ...
0
votes
1answer
54 views
Setting up enviroment variables in Ubuntu
I am trying to setup up my enviroment variable in my Ubuntu machine. Now i did some research and tryed the method on this question Set environment variable in Ubuntu
Similar question but the thing is ...
0
votes
1answer
89 views
$PATH in /etc/profile not inherited by user shell
I have this in /etc/profile in Fedora 17:
PATH=$PATH:"/usr/pgsql-9.2/bin"
EDITOR="/usr/bin/emacs -nw"
PSQL_EDITOR="/usr/bin/emacs"
PAGER="/usr/bin/less"
export PATH USER LOGNAME MAIL HOSTNAME ...
1
vote
2answers
66 views
How to add a path to system $PATH for all users's non-login shell and login shell on debian
I install some programs in /opt/my-program/bin, I want to add /opt/my-program/bin to system $PATH for all users's non-login shell and login shell. What should I do?
Change /etc/environment is OK for ...
4
votes
2answers
58 views
Inhibit Variable Expansion in Paths
How do I prevent Zshell (and Bash I assume) from expanding environment variables in paths be completed as shown in the following example:
$PREFIX/alt/li
should expand to
$PREFIX/alt/lib
and not ...
6
votes
2answers
106 views
How to run a program in a clean environment in bash?
I want to run a program in an empty environment (i.e. with no envariables set). How to do this in bash?
4
votes
2answers
94 views
Change user and load entire environment in shell script
I'm having some trouble with an upstart script of ours that changes user and starts up a few ruby daemon processes.
In the past i would simply bash -c "do the business" -l someuser making sure to use ...
3
votes
1answer
46 views
Environment settings on setuid executables
I am observing a curious behavior when running a program with setuid bit enabled.
Program foo is owned by user bar with setuid bit set.
User execbar runs foo
foo reports that one of the dynamic ...
2
votes
2answers
82 views
Sharing Variables across sub shell scripts
I have a Main shell that runs a profile, The profile contains some variables such as Count. When I call the main shell, it loads the profile and then call another shell script. I want that inner shell ...
2
votes
3answers
79 views
How to add a path to system $PATH for all users's non-login shell for debian
I install some programs in /opt/xxx/bin, I want to add /opt/xxx/bin to system $PATH for all users's non-login shell. What should I do?
1
vote
1answer
74 views
export PATH only once per login in zsh
I need to alter my PATH variable so I put export PATH=$PATH:somedir in my $HOME/.profile which is sourced by my $HOME/.zshrc.
This works, yet whenever I open a new terminal (urxvt in X11), .zshrc ...
2
votes
0answers
36 views
assigning a multiline variable (tcsh prompt) to another
For tcsh, I have a prompt that is multiline:
set prompt = "%/\\
%n@%m[%h]% "
This shows the cwd on one line and then the user/host on second line. However, with this, I cannot make a copy of that:
...
2
votes
2answers
122 views
How to export LD_LIBRARY_PATH to all users and system services
I want to export LD_LIBRARY_PATH to system services and all users.
System services are run before login, so .bashrc is not applicable.
How to achieve this?
7
votes
1answer
120 views
How do you set up the environment for es?
I've been playing with es the last couple of days, and it (like rc) has the quirk/feature that it only runs its startup script (.esrc) on login. The usual way to run code in each interactive session ...