Let's say I want to repeat the same string of environment variables before running various incantations of a commandif [[ some_thing ]]; then    TZ=GMT LC_ALL=C LONG_ENV_VAR=foo my_commandelif [[ some_other_thing ]]; then    TZ=GMT LC_ALL=C LONG_ENV_VAR=foo my_command --with-argelse    TZ=GMT LC_ALL=C LONG_ENV_VAR=foo my_command --with-other-argfiIs there a way to combine those? Some optionsSet them via exportexport TZ=GMTexport LC_ALL=Cexport LONG_ENV_VAR=fooif [[ ]] # ...This works but I would rather not have them continue to be set in the environment.Attempt to create a variable variable!local cmd_args=TZ=GMT LC_ALL=C LONG_ENV_VAR=fooUnfortunately when I tried to run this via:$cmd_args my_commandI got TZ=GMT: command not found.Just list them all out every time. I also tried Googling for this, but environment variable variable isn't the easiest term to search for and I didn't get anywhere. Is there a fix for what I'm trying to do in #2? or am I stuck with some version of #1 and unsetting the vars afterwards?
Assign multiple environment variables to a single variable and expand them on command
bash;environment variables