Symbolic links and Bourne shell...

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Sep 8 02:13:10 AEST 1990


In article <1990Sep7.140159.4832 at usenet.ins.cwru.edu> boysko at dsrgsun.CES.CWRU.Edu (Glenn Boysko) writes:
>In Bourne shell, how can you find the path pointed to be a symbolic link?
>However, in Bourne shell, pwd returns the same value as SYMLINK.

That depends on the Bourne shell implementation.  I normally configure
ours to work like that, because it is more in line with what I think
is a sensible user model for how symlinks to directories should be used.
When I want to find the "real" CWD (i.e. one not involving any symlink
components), I use /bin/pwd instead of the shell's built-in "pwd" command.



More information about the Comp.unix.questions mailing list