Re: symlink confusion

Shawn Bayern (shawn.bayern@yale.edu)
Sat, 27 Feb 1999 21:45:16 -0500 (EST)

On Sat, 27 Feb 1999, Ken Lai wrote:

> Makes perfect sense, and yes, the shells are as you said, tcsh and bash.
> Now, is there a way in bash to tell it to ascend the hardlink rather than
> the softlink when you cd .. ?

Whoa, the terminology's confusing me there. Do you mean "Is there a way
to get bash to just call chdir() and avoid doing anything 'smart'?"

Yes... the 'nolinks' shell variable:

tick:~% bash
[bayern@tick bayern]$ nolinks=true
[bayern@tick bayern]$ cd cs490
[bayern@tick bayern.shawn.bayern]$ pwd
/home/classes/cs490/class/bayern.shawn.bayern
[bayern@tick bayern.shawn.bayern]$ cd ..
[bayern@tick class]$ pwd
/home/classes/cs490/class

Shawn