当前位置: 技术问答>linux和unix
shell 中 export是什么意思?
来源: 互联网 发布时间:2014-12-25
本文导语: shell 中 export是什么意思? | 设置系统环境变量 export [-fn] [name[=word]] ... export -p The supplied names are marked for automatic export to the environment of ...
shell 中 export是什么意思?
|
设置系统环境变量
export [-fn] [name[=word]] ...
export -p
The supplied names are marked for automatic export to the environment of
subsequently executed commands. If the -f option is given, the names refer
to functions. If no names are given, or if the -p option is supplied, a
list of all names that are exported in this shell is printed. The -n option
causes the export property to be removed from the named variables. export
returns an exit status of 0 unless an invalid option is encountered, one of
the names is not a valid shell variable name, or -f is supplied with a name
that is not a function.
export [-fn] [name[=word]] ...
export -p
The supplied names are marked for automatic export to the environment of
subsequently executed commands. If the -f option is given, the names refer
to functions. If no names are given, or if the -p option is supplied, a
list of all names that are exported in this shell is printed. The -n option
causes the export property to be removed from the named variables. export
returns an exit status of 0 unless an invalid option is encountered, one of
the names is not a valid shell variable name, or -f is supplied with a name
that is not a function.