带环境变量导出的脚本执行

来源:互联网 发布:c语言指针占几个字节 编辑:程序博客网 时间:2024/06/05 08:30
If you want to run a script which contains exporting environment variable, you
might need "." to run it:
$ . your_script--which already copyed into the 
$ . ./your_script


If you do not use . to run the script, you will find that when you run
$ echo $YOUR_ENV
you get nothing.
原创粉丝点击