Dear Statalist,
I am using Stata 15 (on a mac with OS High Sierra). I created a new environment variable (let's call it "data") using the .bash_profile file. I am now trying to have Stata recognize it, but it does not work. Two findings that make the problem puzzling to me:
1. The new variable seems to be correctly recognized by my computer. If I write in the terminal:
echo $data
it returns the right value.
2. I can access env variables that are native from my computer in Stata. For example,
returns the right value.
However,
returns blank
Any insights on why this could happen?
Thanks,
Andrés
I am using Stata 15 (on a mac with OS High Sierra). I created a new environment variable (let's call it "data") using the .bash_profile file. I am now trying to have Stata recognize it, but it does not work. Two findings that make the problem puzzling to me:
1. The new variable seems to be correctly recognized by my computer. If I write in the terminal:
echo $data
it returns the right value.
2. I can access env variables that are native from my computer in Stata. For example,
Code:
global home: env HOME di "$HOME"
However,
Code:
global data: env data di "$data"
Any insights on why this could happen?
Thanks,
Andrés
Comment