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---
[root@intdns1 /root]# cd /etc/init.d
[root@intdns1 init.d]# pwd
/etc/init.d
[root@intdns1 init.d]# cd ..
[root@intdns1 /etc]# ls -ld init.d
lrwxrwxrwx    1 root     root           11 May 30 17:18 init.d -> rc.d/init.d
[root@intdns1 /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.


_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to