Symbolic links and Bourne shell...

Glenn Boysko boysko at dsrgsun.CES.CWRU.Edu
Sat Sep 8 00:01:59 AEST 1990


In Bourne shell, how can you find the path pointed to be a symbolic link?

In C shell, you can type:

	% set linkpath = "`cd $SYMLINK; pwd`"

However, in Bourne shell, pwd returns the same value as SYMLINK.  Does anyone
know how to get this info in a Bourne shell without typing:

	% linkpath="`csh -c 'cd $SYMLINK; pwd'`"


Thanks,
Glenn

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glenn Boysko		clsi!glenn at uunet.uu.net



More information about the Comp.unix.questions mailing list