forked from koalaman/shellcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
SC2163
Vidar Holen edited this page Oct 4, 2015
·
2 revisions
MYVAR=foo
export $MYVAR
MYVAR=foo
export MYVAR
export
takes a variable name, but shellcheck has noticed that you give it an expanded variable instead. The problematic code does not export MYVAR
but a variable called foo
if any.
If you do want to export the variable's value, e.g. due to indirection, you can disable this message with a directive:
# shellcheck disable=SC2163
export "$MYVAR"