如何在bash中使用clarify -x [英] How to use declare -x in bash
本文介绍了如何在bash中使用clarify -x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以举一个声明-x有用的例子吗?
Can some one give an example where declare -x would be useful ?
推荐答案
声明-x FOO
与 export FOO
相同.它将 FOO
变量导出"为环境变量,以便从该Shell会话运行的程序可以看到它.
declare -x FOO
is the same as export FOO
. It "exports" the FOO
variable as an environment variable, so that programs you run from that shell session would see it.
这篇关于如何在bash中使用clarify -x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文