shell中source sh exec的区别
来源:互联网 发布:淘宝模特多少钱一个月 编辑:程序博客网 时间:2024/05/24 07:10
- shell中使用source conf.sh,是直接运行conf.sh的命令,不创建子shell,类似与html中include
- sh是则创建子shell,子shell里面 的变量父shell无法使用,对环境变量的修改也不影响父shell。父shell中的局部变量,子shell也无法使用,只有父shell的环境变量, 子shell能够使用。
- 还有一个exec conf.sh,这个与source类似,区别是exec执行完,不再执行后面的语句。
- 还有一个.号,用来引用其他文件(一般定义了一些function,和变量)
0 0
- shell中source sh exec的区别
- Shell中exec、source和shell script的区别
- Shell中exec、source和shell script的区别
- linux:Shell中exec、source和shell script的区别
- linux:Shell中exec、source和shell script的区别
- shell中exec 与fork/source的区别
- shell中source和sh script的区别
- linux source bash ./ sh fork exec 的区别
- ubuntu中source,sh/bash,./的区别
- shell 脚本各种执行方式(source ./*.sh, . ./*.sh, ./*.sh)的区别
- A009: shell 脚本各种执行方式(source ./*.sh, . ./*.sh, ./*.sh)的区别
- shell 脚本各种执行方式(source ./*.sh, . ./*.sh, ./*.sh)的区别
- #!/bin/bash和#!/bin/sh的区别,source命令和exec命令
- shell脚本配置环境变量时 source XXX.sh与 ./XXX.sh的区别
- fork/source/exec的区别
- sh和source的区别
- source, exec and sh analysis
- Linux bash shell中. & source & ./的区别
- sublime text3 中文补丁以及乱码解决方案
- GET请求和POST请求的区别
- php.ini extension 扩展库说明
- iOS开发-文件管理
- android 后台service开机自启动
- shell中source sh exec的区别
- Linux进程间通信 - 消息队列
- C++第一次实验成果
- hdu1561树形dp+依赖背包
- 性能测试指标之CPU时间片
- 华为oj 字串的连接最长路径查找
- 行内元素间距问题
- LeetCode:Maximal Square
- 我的书单