Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: Symbolic links and Bourne shell... Message-ID: <13767@smoke.BRL.MIL> Date: 7 Sep 90 16:13:10 GMT References: <19417@well.sf.ca.us> <1990Sep7.140159.4832@usenet.ins.cwru.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 9 In article <1990Sep7.140159.4832@usenet.ins.cwru.edu> boysko@dsrgsun.CES.CWRU.Edu (Glenn Boysko) writes: >In Bourne shell, how can you find the path pointed to be a symbolic link? >However, in Bourne shell, pwd returns the same value as SYMLINK. That depends on the Bourne shell implementation. I normally configure ours to work like that, because it is more in line with what I think is a sensible user model for how symlinks to directories should be used. When I want to find the "real" CWD (i.e. one not involving any symlink components), I use /bin/pwd instead of the shell's built-in "pwd" command.