X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FREEMAIL_REPLY,FSL_RU_URL,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_YG X-Spam-Check-By: sourceware.org Message-ID: <4E035F46.7000207@gmail.com> Date: Thu, 23 Jun 2011 17:44:06 +0200 From: Marco atzeri User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Andrey Repin CC: Andrey Repin Subject: Re: Strange cygpath behavior. References: <73619422 DOT 20110621092310 AT mtu-net DOT ru> <4E00321A DOT 30105 AT lysator DOT liu DOT se> <92658329 DOT 20110623165230 AT mtu-net DOT ru> <4E03492D DOT 40109 AT gmail DOT com> <1144668147 DOT 20110623190534 AT mtu-net DOT ru> In-Reply-To: <1144668147.20110623190534@mtu-net.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 On 6/23/2011 5:05 PM, Andrey Repin wrote: > Greetings, Marco atzeri! > > Cygwin, to my best understanding, is supposed to transparently accept native > Windows paths. No, cygwin expects to receive POSIX/Unix paths $ cygpath -h [cut] -u, --unix (default) print Unix form of NAMEs (/cygdrive/c/winnt) so cygpath -u expects to receive a Windows path and convert it in a unix one. From your example: cygpath -u \\\\DAEMON1\\anrdaemon\\.profile /c/DAEMON1/anrdaemon/.profile the argument is an escaped windows network path and the outcome is the Unix equivalent As Corinna explained: $ echo \\\\DAEMON1\\anrdaemon\\.profile \\DAEMON1\anrdaemon\.profile By the way resetting "cygdrive" is not a good idea, it is better to obtain /cygdrive/c/DAEMON1/anrdaemon/.profile > > -- > WBR, > Andrey Repin (anrdaemon AT freemail DOT ru) 23.06.2011,<18:47> > > Sorry for my terrible english... > Marco -- 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