Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: Symbolic links and Bourne shell... Keywords: pwd, ls, ln -s Message-ID: <1990Sep08.014846.8194@virtech.uucp> Date: 8 Sep 90 01:48:46 GMT References: <19417@well.sf.ca.us> <1990Sep7.140159.4832@usenet.ins.cwru.edu> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 18 In article <1990Sep7.140159.4832@usenet.ins.cwru.edu> boysko@dsrgsun.CES.CWRU.Edu (Glenn Boysko) writes: > >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: Have you tried: % linkpath="`cd $SYMLINK; /bin/pwd'`" The moral of the story is that pwd is a built-in (in many borne shells) that just echos what the shell thinks is the current directory. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170