更新时间:2022-12-28 16:18:59
出口VAR =值
将设置为VAR值。将其用单引号,如果你想空间,如出口VAR ='我VAL
。如果你想进行插值变量,使用双引号,像出口VAR =$ MY_OTHER_VAR
。
export VAR=value
will set VAR to value. Enclose it in single quotes if you want spaces, like export VAR='my val'
. If you want the variable to be interpolated, use double quotes, like export VAR="$MY_OTHER_VAR"
.