a bug of bash
时间:2007-05-18 来源:mirnshi
In your home directory, under bash, input 'cd //', what do you get?
[root@localhost ~]# pwd
/root
[root@localhost ~]# cd //
[root@localhost //]# pwd
//
[root@localhost //]# ls
bin boot data dev etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys test tmp usr var
[root@localhost //]#
[root@localhost /]# help
GNU bash, version 3.00.15(1)-release (i386-redhat-linux-gnu)
......
[root@localhost ~]# pwd
/root
[root@localhost ~]# cd //
[root@localhost //]# pwd
//
[root@localhost //]# ls
bin boot data dev etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys test tmp usr var
[root@localhost //]#
[root@localhost /]# help
GNU bash, version 3.00.15(1)-release (i386-redhat-linux-gnu)
......
相关阅读 更多 +