Environment variables are system-wide variables which share the same value. These variables are often parsed by the shell when executing commands, and are expanded into their appropriate variable. For example, this allows users to move file locations without needing to update hard-coded paths in ...

learn more… | top users | synonyms

5
votes
4answers
4k views

Irssi settings and Bash's Environment variables

How can I define settings, such as ircname, nick and such things, in .bashrc for Irssi?
1
vote
2answers
4k views

invoke program from CMD, with path contains white space

C:\Documents and Settings\js>echo %JAVA_HOME% C:\Program Files\Java\jdk1.6.0_11 C:\Documents and Settings\js>cd %JAVA_HOME%\bin C:\Program Files\Java\jdk1.6.0_11\bin>%JAVA_HOME%\bin java ...
3
votes
1answer
2k views

System-wide environment variables for zsh on Ubuntu

I'm using Ubuntu 9.04 I'm trying to add some system-wide envvars, I want them to be visible to both bash and zsh(my main shell), I added them to /etc/profile but unfortunately I can't see them in zsh ...
6
votes
5answers
2k views

When I run an app from the cmd-line, how do I find the exe's path?

When I run an app from the DOS Prompt in Windows, the command in question is often not in the current directory, but is found via the PATH environment variable. What's the quickest way to find the ...
9
votes
8answers
5k views

$PATH in Vim doesn't match Terminal

I'm using MacVim and when I don't launch it from the Terminal (mvim) its $PATH does not include what I have set in my .bash_profile. It only seems to have the default values, ...
5
votes
6answers
7k views

Why does my LD_LIBRARY_PATH get unset launching terminal?

I have a shell script to set up some environment variables and launch whatever program I send in as an argument: export PATH=$HOME/local/bin:$PATH export ...
22
votes
14answers
37k views

Why can't Windows handle an environment variable in Path?

My colleague and I have identical Dell workstations with Windows XP Professional x64 edition installed. My Path environment variable starts with: %JAVA_HOME%\bin;... My colleague's Path variable ...
77
votes
4answers
82k views

Change environment variables as standard user (Windows 7)

When clicking on "Advanced system settings", I need to login as the administrator and hence only edit the administrators environment variables (in addition to the machine wide ones). How do I edit the ...
1
vote
3answers
989 views

Set environment variables from within a bash shell

Is there a way to set environment variables from within a (bash) shell script? I want to set some environment variables on some servers using a small script rather than typing. Some forum posts ...
11
votes
4answers
10k views

How do I set an environmental variable for a GNOME session?

On my system, for apps that use SDL, I need to set an environmental variable: export SDL_AUDIODRIVER=alsa to get the sound to work properly. How do I set up my GNOME session so that this variable ...
32
votes
4answers
2k views

Difference between “a=b” and “export a=b” in bash

What's the difference between: a=b and export a=b In bash? I understand that they both define environment variables, but I don't fully understand the difference.
14
votes
9answers
7k views

Is there any command line tool that can be used to edit environment variables in Windows?

Is there any command line tool that can be used to edit environment variables in Windows? It would be nice if this was smart tool, for example: When adding some path to let's say the PATH variable ...
2
votes
3answers
20k views

javac command not found

I am trying to compile a java program I found on the internet and it says that I must check if javac is installed. I installed the JDK a long time ago so it should be working but I get command not ...