bash的set为什么有时候显示很多内容?
set不知道为什么有时候显示太多的内容,包括了一些函数的定义
不想显示这么多内容,应该怎么设置啊
[解决办法]
[解决办法]
我以前也碰到过这种事情,忘了当时是什么系统环境了,也没去查原因。你是用的什么系统?在哪个目录下执行?
我现在虚拟机上出现不了这种现象,不能重现出来查原因
[解决办法]
bash启动时要读取初始化文件,创建许多函数。
用 bash -norc 启动就没有了。
不带参数的set就是显示所有变量和函数。
[解决办法]
用 bash -norc 启动就没有了。
[解决办法]
set 默认的是显示系统的所有目前的环境变量
[解决办法]
[解决办法]
[解决办法]
--norc Do not read and execute the personal initialization file
~/.bashrc if the shell is interactive. This option is on by
default if the shell is invoked as sh.
[解决办法]
[解决办法]