bash - 如何在 bash 中使用 declare -x

标签 bash shell

有人可以举例说明 declare -x 有用吗?

最佳答案

declare -x FOOexport FOO 相同。它将 FOO 变量“导出”为环境变量,以便您从该 shell session 运行的程序可以看到它。

关于bash - 如何在 bash 中使用 declare -x,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5785668/

相关文章:

c - C 型鞭尾压力表

bash - shell脚本中的竖线?

html - 从 Unix shell 在电子邮件中嵌入动态 HTML 表

xml - Bash 将子节点插入到 XML 文件

linux - 如何在shell脚本中获取二进制执行结果?

git - 使用 git 的 Shell 脚本 self 更新

bash - 如何打印 Bash 中的所有父目录

python - 在 Python 3 中抑制 "Exception ... ignored"消息的打印输出

linux - 每次更改目录时调用 ls 命令的 shell 脚本

linux - 在 zsh 中获取进程的 pid