之前一直使用bash-2.0.5版本,今天用portupgrade升级软件。干脆也升级下bash吧。旧版本,登录后提示: su-2.05b# 3.1版本,登录后提示: [root@localhost /root]# 至于3.1版本有些什么新功能,还没有来得及留意。呵呵

不过,对比下,内存消耗却不一样了。

[root@localhost /root]# ps u|grep bash
root 51901 0.0 0.2 2848 1632 p5 S 7:36AM 0:00.01 su (bash)#bash3.1
root 47934 0.0 0.2 2852 1572 p4 I 6:51AM 0:00.02 su (bash)#bash3.1
root 48815 0.0 0.0 1132 0 p3 IW - 0:00.00 su (bash))#bash205
root 17257 0.0 0.1 1136 600 p2 I+ Tue01PM 0:00.53 su (bash)#bash205
root 5933 0.0 0.0 1096 0 p1 IW - 0:00.00 su (bash)#bash205
root 99884 0.0 0.1 1176 592 p0 S+ Tue11AM 0:00.38 su (bash)#bash205
root 58466 0.0 0.2 2848 1632 p5 R+ 8:39AM 0:00.00 su (bash) #bash3.1

如果内存资源不多,并且没有必须bash3.1支持的情况,建议还是用bash2.0.5吧。

之前做过一次portupgrade,把cvsup也给升级了。然后每次cvsup 的时候,都出现如下提示:
su-2.05b# cvsup -L 2 -g /opt/etc/ports-supfile
Parsing supfile "/opt/etc/ports-supfile"
Connecting to cvsup3.cn.FreeBSD.org
Connected to cvsup3.cn.FreeBSD.org
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Updating collection ports-all/cvs


***
*** runtime error:
*** Segmentation violation - possible attempt to dereference NIL
*** pc = 0x80e15f7
***

use option @M3stackdump to get a stack trace
Abort trap

这个现象,屡试不爽。超级郁闷……

 查看全文