|
|

楼主 |
发表于 2004-7-21 09:46:19
|
显示全部楼层
继续上面的问题,偶发现把if [ -f ~/.bashrc ]; 改成
if [ -f ~/.bashrc ] ; 就正确了,但是前面的写法在redhat上面却可以用,是不是redhat对bash进行了一些修改?
redhat下bash的版本信息:
GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
LFS下bash的版本信息:
GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc. |
|