I\'ve added a system wide environment variable in /etc/environment. I want to access this variable in a bash script. Is there any way to access it?
Assuming that PATH is an environmental variable, also in /etc/environment, I can access path in a script like this:
#!/bin/sh echo $PATH
So what's wrong with your variable?