X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=rJSsSlfQZOmoncz14WNyirPKFWEPjAwo+JieAGV74J8 scz43rlSge/NTLf0q/vQ9fAlwewTqdav1MG/1Cah9HhIFqTc3tcY3n61XkRx6DQm y2iHdBx0WdCDR/pfuUd70b0DJRozBvnKNtVVuAvJwziF25AiWOYKVL3P25fc6M7M = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=+9mA2k8J1DlRONWRglZtZrRa3jk=; b=cwnY16k80FascDAjC oWMVHhyf2lVdVZiMIC/bwGlKQGwKm7Juhdp/xjprLS5ME6arGZBNiUlQQAEMp45n SwCuPrL2oHEE+lCFOqCokW1zEYn86uHgoyZs/K89vI2C3UDY0RfpIyu0aoHHPoRx wnSpsB8tnsJa4jqjHqplFuvL6U= 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 X-Spam-SWARE-Status: No, score=-5.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG autolearn=ham version=3.3.1 X-Received: by 10.66.254.225 with SMTP id al1mr5969550pad.111.1366429308304; Fri, 19 Apr 2013 20:41:48 -0700 (PDT) Message-ID: <51720E77.1060808@gmail.com> Date: Sat, 20 Apr 2013 11:41:43 +0800 From: Arthur Tu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: ln -s do not work References: <51717B9E DOT 9060701 AT gmail DOT com> <20130419174451 DOT GA26904 AT phoenix> In-Reply-To: <20130419174451.GA26904@phoenix> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Solved. Thank you very much~ On 4/20/2013 1:44 AM, Gary Johnson wrote: > On 2013-04-20, Arthur Tu wrote: >> After I did this: >> $ ln -s Repos/bugn/ Projects/ >> >> A file named `bugn` is created under Projects, >> as it is said in the cygwin documentation. >> >> However, cygwin does recognise `bugn` as a link file, >> while can't determine where it point to. >> >> I draged the file to notepad.exe, and see following text: >> >> ! e p o s / b u g n / >> >> >> $ cygcheck -f /bin/ln.exe >> coreutils-8.15-1 >> >> I am sure `ln -s some_directory` used to work well on my computer. >> I tested hard link or soft link of the file, it worked well. >> Help. > This is not a Cygwin problem. Linux, for example, behaves the same. > > What you did was create a symbolic link in Projects to the file > named Repos/bugn, a relative path name. Any reference to > Projects/bugn is resolved to Projects/Repos/bugn. This is correct, > but not what you intended. > > One alternative would be > > $ ln -s ../Repos/bugn/ Projects/ > > Another would be > > $ ln -s $PWD/Repos/bugn/ Projects/ > > Which one is better depends on your environment and on what you're > trying to achieve. > > Regards, > Gary > > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple