Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!dsrgsun!boysko From: boysko@dsrgsun.CES.CWRU.Edu (Glenn Boysko) Newsgroups: comp.unix.questions Subject: Symbolic links and Bourne shell... Summary: How to see what a link points to? Keywords: pwd, ls, ln -s Message-ID: <1990Sep7.140159.4832@usenet.ins.cwru.edu> Date: 7 Sep 90 14:01:59 GMT References: <19417@well.sf.ca.us> Sender: uunet!clsi!glenn (Glenn Boysko) Organization: CWRU Dept of Computer Engineering and Science Lines: 19 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@uunet.uu.net