link resolution in directory
Larry Hall (Cygwin)
Sun Apr 15 22:17:00 GMT 2007
teggy p v wrote:
> Hi there,
> Is there a way to have a link (pointing to a directory) resolved to the
> target directory when changing directory to that link ?
> Here is what I am trying to achieve:
> $ ln /cygdrive/c/downloads
> $ cd downloads
> $ pwd
> When running the last 'pwd' command, rather than having
> /cygdrive/c/home/teggy/downloads (which the current directory appended with
> downloads) I would rather like to have /cygdrive/c/downloads ...
I assume you meant "ln -s /cygdrive/c/downloads" above.
The answer to your question is to use '/bin/pwd'.
This is not a Cygwin-specific issue so further discussion of it is really
off-topic for this list. If you have further inquiries that you'd like to
make on this or other non-Cygwin issues, please find a forum dedicated to
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin