Skip to content

Instantly share code, notes, and snippets.

@wwalker
Created May 1, 2024 21:21
Show Gist options
  • Save wwalker/5a66741b74b222057b19d1390bfb2f2d to your computer and use it in GitHub Desktop.
Save wwalker/5a66741b74b222057b19d1390bfb2f2d to your computer and use it in GitHub Desktop.
variable-wont-export-into-env
>$ echo "$GITLAB_TOKEN"
asdf
>$ export GITLAB_TOKEN
>$ echo "$GITLAB_TOKEN"
asdf
>$ /usr/bin/env | /usr/bin/grep GIT
>$ bash --version
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
>$ bash -c 'echo $GITLAB_TOKEN'
>$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment