# Unable to access generated variables

**URL:** <https://discuss.circleci.com/t/unable-to-access-generated-variables/14893>\
**Category:** Build Environment\
**Tags:** envars\
**Created:** [July 28, 2017, 11:06am UTC](https://discuss.circleci.com/t/unable-to-access-generated-variables/14893 "2017-07-28T11:06:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan-brodie](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@dan-brodie](https://discuss.circleci.com/u/dan-brodie)\
**Post date:** [July 28, 2017, 11:06am UTC](https://discuss.circleci.com/t/unable-to-access-generated-variables/14893/1 "2017-07-28T11:06:33Z")

</div>

Hi i need to build minor versions of containers into a folder tagged with the major release number.

to do this im using release tags - e.g release-1.0.1

for various reasons major is only one decimal place  
major is called release-1.0  
minor is called release-1.0.1

to get these variables i am using CIRCLE\_TAG and then running: - env MAJOR\_VER=(echo “$CIRCLE\_TAG” | cut -c 1-11)

i can see when this runs that the correct environmental variable is created in the variables list  
however when i come to echo it out it isnt visible.

What am i doing wrong?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:39am UTC](https://discuss.circleci.com/t/unable-to-access-generated-variables/14893/2 "2018-06-18T11:39:44Z")

</div>


