X-Spam-Check-By: sourceware.org Message-ID: <4622A46C.3010903@cygwin.com> Date: Sun, 15 Apr 2007 18:17:16 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070308 Fedora/1.5.0.10-2.fc4.remi Thunderbird/1.5.0.10 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: link resolution in directory References: <001201c77fa9$8498de80$3501a8c0 AT saphire> In-Reply-To: <001201c77fa9$8498de80$3501a8c0@saphire> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 > /cygdrive/c/home/teggy/downloads > $ > > 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 your topic. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > 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 Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/