Linux error export: ` = / data ': not a valid identifier

Alibaba cloud Q & A 2022-02-13 07:56:11 阅读数:664

linux error export data valid
$ export $CODE_BASE=$HOME/test-bash: export: `=/data/xxx/yyy': not a valid identifier



Take the answer 1:

Hello! ,bash When you assign a value to a variable in , The assigned variable cannot be added $ Of , Only when you reference this variable , Just need to add $


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130756096337.html