2 ms·
His example: $ SOME_ENVVAR=... some_command <args> Is wrong. SOME_ENVVAR is set only for the invocation some_command; at the next prompt, the value of SOME
by fatbird 6y ago
His example:
$ SOME_ENVVAR=... some_command <args>
Is wrong. SOME_ENVVAR is set only for the invocation some_command; at the next prompt, the value of SOME_ENVVAR is what it was before the invocation. To persist the setting of the value you need to export it:
$ export SOME_ENVVAR=... some_command <args>