[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash bug
From: |
Sean Embry |
Subject: |
bash bug |
Date: |
Sat, 09 Jun 2001 22:58:04 -0500 |
Under Linux 7.0 with bash 2.04.11:
If I'm in /etc/init.d dir, and want to edit /etc/dhcpd.conf, I go
vi ../dhcpd.conf
However, this doesn't work.
It seems that if you cd into a link to a directory, when you attempt to use
"up one directory" it
follows the "real" path, insted of the "linked" path.
When you do a pwd, it reports the "linked" path, not the "real" path.
EG:
/etc/init.d is a link to /etc/rc.d/init.d.
Here are some screen clips:
---8<cut here>8---
address@hidden /root]# cd /etc/init.d
address@hidden init.d]# pwd
/etc/init.d
address@hidden init.d]# cd ..
address@hidden /etc]# ls -ld init.d
lrwxrwxrwx 1 root root 11 May 30 17:18 init.d -> rc.d/init.d
address@hidden /etc]#
---8<cut here>8---
Hope I gave you what you need to see the problem, or tell me to soak my
head for being stupid!
Have a good one.