计算机网络/计算机科学与应用/系统/运维/开发

Shell脚本编程 bash太老升级的方法

升级Bash的方法

首先检测如下:

[root@Linux myshell]# env x='() { :; }; echo be careful' bash -c "echo this is a test"
this is a test


如果出现:

be careful
this is a test

表示可以升级


升级方式如下:

yum -y update bash
rpm -qa bash

学会在学习中寻找乐趣,学会乐在其中并保持热情

评论

^