Symbolic links and Bourne shell...

Kingsley Nwosu nwosuck at aix.aix.kingston.ibm.com
Fri Oct 12 02:20:59 AEST 1990


In article <1990Sep7.140159.4832 at 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.			|	 



More information about the Comp.unix.questions mailing list