[CentOS] CentOS6 and tilde expansion

isdtor isdtor at gmail.com
Thu Jan 5 16:10:06 UTC 2012


Set up NIS and autofs on this new CentOS6 box, but it seems tilde
expansion no longer works in bash?

[root at frodo ~]# cd ~john
-bash: cd: ~john: No such file or directory
[root at frodo ~]# cd /home/john
[root at frodo john]# pwd
/home/john
[root at frodo john]#

It still works in t/csh:

[root at frodo ~]# /bin/csh
[root at frodo ~]# cd ~john
[root at frodo ~john]# pwd
/home/john
[root at frodo ~john]#

I couldn't find anything in the bash man page that suggests this
feature needs explicit configuration.



More information about the CentOS mailing list