Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ibmps2!aix!nwosuck From: nwosuck@aix.aix.kingston.ibm.com (Kingsley Nwosu) Newsgroups: comp.unix.questions Subject: Re: Symbolic links and Bourne shell... Message-ID: <4042@aix.aix.kingston.ibm.com> Date: 11 Oct 90 16:20:59 GMT References: <19417@well.sf.ca.us> Organization: IBM Corporation, Kingston NY Lines: 30 To: boysko@dsrgsun.CES.CWRU.Edu In-Reply-To: <1990Sep7.140159.4832@usenet.ins.cwru.edu> Cc: Bcc: In article <1990Sep7.140159.4832@usenet.ins.cwru.edu> you write: > >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'`" I don't understand your problem. In Bourne shell, one can do: $ linkpath=`cd $SYMBOLIC;pwd` I know I can. Why can't you? Aahhh! Maybe implementation differences!!!! Kingsley Nwosu ...uunet!ibmps2!aix!nwosuck IBM AIX Dev., Dept. 83HA/572, | Neighborhood Rd, Kingston, |"Advice to those about to get married: Don't!" NY 12401. |