Symbolic links and Bourne shell...
Conor P. Cahill
cpcahil at virtech.uucp
Sat Sep 8 11:48:46 AEST 1990
In article <1990Sep7.140159.4832 at usenet.ins.cwru.edu> boysko at 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
More information about the Comp.unix.questions
mailing list