回想一下,我们还提到过可以“导出”变量。
Recall that we also mentioned that we can "export" variables.
需要对其他的环境变量进行导出、或使得它们全局可用,并将它们复制到从命令行中启动的每个命令的进程空间(即环境)。
Other environment variables are exported, or made globally available, and are copied into the process space (the environment) of every command you launch from the command line.
当导出环境变量时,它可以自动地由以后运行的任何脚本或可执行程序环境使用。
When we export an environment variable, it's automatically available in the environment of any subsequently-run script or executable.
应用推荐