Having problems setting environment variables in the Terminal in macOS High SierraProblems with environment...
Rotate ASCII Art by 45 Degrees
What's the meaning of "Sollensaussagen"?
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
Unlock My Phone! February 2018
Does Dispel Magic work on Tiny Hut?
Where would I need my direct neural interface to be implanted?
How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?
Can I hook these wires up to find the connection to a dead outlet?
How can saying a song's name be a copyright violation?
Why was Sir Cadogan fired?
What do you call someone who asks many questions?
Why is the sentence "Das ist eine Nase" correct?
How could indestructible materials be used in power generation?
Why are UK visa biometrics appointments suspended at USCIS Application Support Centers?
Implication of namely
How badly should I try to prevent a user from XSSing themselves?
How dangerous is XSS
Why do I get negative height?
Does int main() need a declaration on C++?
How does a dynamic QR code work?
Ambiguity in the definition of entropy
Car headlights in a world without electricity
OP Amp not amplifying audio signal
What is the most common color to indicate the input-field is disabled?
Having problems setting environment variables in the Terminal in macOS High Sierra
Problems with environment variablesMessed up bash configuration on Mac OS XConfused about setting environment variables.tmux.conf: How can I conditionally set a color variable?Is there a way to “source” a sh script from the fish shell?What is the scope of “exported” in Unix shell variables?Problems with setting environment variables (especially PATH) and using cd with them in cmd in windows 10Providing API Keys at Runtime for Chromium doesn't workGlobally set environment variables for gpg-agent in MacOS High SierraLinux NUKE_PATH Environment Variable only regonized in GUI / Interactive
I have an issue setting an environment variable on my MacBook Pro running macOS High Sierra.
In the terminal, I tried to setup an environment variable by executing export VARIABLE_URL=example.com. I then tried to check that the environment variable was set with echo $VARIABLE_URL, but it returned a blank result.
Now whenever I start up the terminal, I get this message:
Last login: Tue Apr 2 15:08:56 on ttys000
[1] Done export VARIABLE_URL=example.com
[2] Done appVersion=
[3] Done osVersion=
[4] Done deviceType=
[5]+ Done deviceId=
My-MacBook-Pro:~ me$
I tried adding the variable to my .bash_profile file, but even this doesn't set the variable properly. Every time I do echo $VARIABLE_URL, it returns blank.
I've set other variables in my .bash_profile, but this is the only variable that my computer refuses to add.
Even when I execute printenv, all environment variables are displayed except for VARIABLE_URL.
Why can't I set this environment variable?
macos bash terminal environment-variables
New contributor
Brian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have an issue setting an environment variable on my MacBook Pro running macOS High Sierra.
In the terminal, I tried to setup an environment variable by executing export VARIABLE_URL=example.com. I then tried to check that the environment variable was set with echo $VARIABLE_URL, but it returned a blank result.
Now whenever I start up the terminal, I get this message:
Last login: Tue Apr 2 15:08:56 on ttys000
[1] Done export VARIABLE_URL=example.com
[2] Done appVersion=
[3] Done osVersion=
[4] Done deviceType=
[5]+ Done deviceId=
My-MacBook-Pro:~ me$
I tried adding the variable to my .bash_profile file, but even this doesn't set the variable properly. Every time I do echo $VARIABLE_URL, it returns blank.
I've set other variables in my .bash_profile, but this is the only variable that my computer refuses to add.
Even when I execute printenv, all environment variables are displayed except for VARIABLE_URL.
Why can't I set this environment variable?
macos bash terminal environment-variables
New contributor
Brian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Can you share your.bash_profilecontent? If not perhaps just what you are setting and what works as well.
– JakeGould
2 hours ago
add a comment |
I have an issue setting an environment variable on my MacBook Pro running macOS High Sierra.
In the terminal, I tried to setup an environment variable by executing export VARIABLE_URL=example.com. I then tried to check that the environment variable was set with echo $VARIABLE_URL, but it returned a blank result.
Now whenever I start up the terminal, I get this message:
Last login: Tue Apr 2 15:08:56 on ttys000
[1] Done export VARIABLE_URL=example.com
[2] Done appVersion=
[3] Done osVersion=
[4] Done deviceType=
[5]+ Done deviceId=
My-MacBook-Pro:~ me$
I tried adding the variable to my .bash_profile file, but even this doesn't set the variable properly. Every time I do echo $VARIABLE_URL, it returns blank.
I've set other variables in my .bash_profile, but this is the only variable that my computer refuses to add.
Even when I execute printenv, all environment variables are displayed except for VARIABLE_URL.
Why can't I set this environment variable?
macos bash terminal environment-variables
New contributor
Brian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have an issue setting an environment variable on my MacBook Pro running macOS High Sierra.
In the terminal, I tried to setup an environment variable by executing export VARIABLE_URL=example.com. I then tried to check that the environment variable was set with echo $VARIABLE_URL, but it returned a blank result.
Now whenever I start up the terminal, I get this message:
Last login: Tue Apr 2 15:08:56 on ttys000
[1] Done export VARIABLE_URL=example.com
[2] Done appVersion=
[3] Done osVersion=
[4] Done deviceType=
[5]+ Done deviceId=
My-MacBook-Pro:~ me$
I tried adding the variable to my .bash_profile file, but even this doesn't set the variable properly. Every time I do echo $VARIABLE_URL, it returns blank.
I've set other variables in my .bash_profile, but this is the only variable that my computer refuses to add.
Even when I execute printenv, all environment variables are displayed except for VARIABLE_URL.
Why can't I set this environment variable?
macos bash terminal environment-variables
macos bash terminal environment-variables
New contributor
Brian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Brian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 hours ago
JakeGould
32.6k10100142
32.6k10100142
New contributor
Brian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 3 hours ago
BrianBrian
11
11
New contributor
Brian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Brian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Brian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Can you share your.bash_profilecontent? If not perhaps just what you are setting and what works as well.
– JakeGould
2 hours ago
add a comment |
Can you share your.bash_profilecontent? If not perhaps just what you are setting and what works as well.
– JakeGould
2 hours ago
Can you share your
.bash_profile content? If not perhaps just what you are setting and what works as well.– JakeGould
2 hours ago
Can you share your
.bash_profile content? If not perhaps just what you are setting and what works as well.– JakeGould
2 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Brian is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1420628%2fhaving-problems-setting-environment-variables-in-the-terminal-in-macos-high-sier%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Brian is a new contributor. Be nice, and check out our Code of Conduct.
Brian is a new contributor. Be nice, and check out our Code of Conduct.
Brian is a new contributor. Be nice, and check out our Code of Conduct.
Brian is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1420628%2fhaving-problems-setting-environment-variables-in-the-terminal-in-macos-high-sier%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you share your
.bash_profilecontent? If not perhaps just what you are setting and what works as well.– JakeGould
2 hours ago