X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: Yes, hits=6.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,FSL_RU_URL,KAM_THEBAT,TW_YG X-Spam-Check-By: sourceware.org Date: Tue, 21 Jun 2011 09:23:10 +0400 From: Andrey Repin Reply-To: Andrey Repin Message-ID: <73619422.20110621092310@mtu-net.ru> To: All Subject: Strange cygpath behavior. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Greetings, All! I'm facing an unacceptable cygpath behavior related to the network shares. The testcase is: [\\DAEMON1\anrdaemon]$cygpath -u \\DAEMON1\anrdaemon\.profile //DAEMON1/anrdaemon/.profile [\\DAEMON1\anrdaemon]$cygpath -m \\DAEMON1\anrdaemon\.profile //DAEMON1/anrdaemon/.profile [\\DAEMON1\anrdaemon]$cygpath -lm \\DAEMON1\anrdaemon\.profile //DAEMON1/anrdaemon/.profile [\\DAEMON1\anrdaemon]$cygpath -u "\\DAEMON1\anrdaemon\.profile" /DAEMON1/anrdaemon/.profile [\\DAEMON1\anrdaemon]$cygpath -m "\\DAEMON1\anrdaemon\.profile" ///DAEMON1/anrdaemon/.profile [\\DAEMON1\anrdaemon]$cygpath -lm "\\DAEMON1\anrdaemon\.profile" ///DAEMON1/anrdaemon/.profile Only unquoted path producing usable results, but it's not realistically imaginable I would let it run this way. One day I will sure meet a file with "]" in it's name, and the surrounding environment will break. Or, even simpler, I'll hit a filename with spaces... This issue arising in different places of cygwin (originally I got nailed by it when trying to run diff across my now-network profile folder). cygpath is just a closest example I could reach for this message. -- WBR, Andrey Repin (anrdaemon AT freemail DOT ru) 21.06.2011, <9:21> Sorry for my terrible english... -- 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