delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/06/21/01:55:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_YG,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4E00321A.30105@lysator.liu.se>
Date: Tue, 21 Jun 2011 07:54:34 +0200
From: Peter Rosin <peda AT lysator DOT liu DOT se>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Strange cygpath behavior.
References: <73619422 DOT 20110621092310 AT mtu-net DOT ru>
In-Reply-To: <73619422.20110621092310@mtu-net.ru>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Den 2011-06-21 07:23 skrev Andrey Repin:
> Greetings, All!

Hi!

> I'm facing an unacceptable cygpath behavior related to the network shares.

Unacceptable? Perhaps your quoting skills and expectations fall
into that category...

> The testcase is:
> 
> [\\DAEMON1\anrdaemon]$cygpath -u \\DAEMON1\anrdaemon\.profile
> //DAEMON1/anrdaemon/.profile

I think you mean cygpath -u \\\\DAEMON1\\anrdaemon\\.profile

> [\\DAEMON1\anrdaemon]$cygpath -m \\DAEMON1\anrdaemon\.profile
> //DAEMON1/anrdaemon/.profile

I think you mean cygpath -m //DAEMON1/anrdaemon/.profile

(-m expects posix path arguments)

> [\\DAEMON1\anrdaemon]$cygpath -lm \\DAEMON1\anrdaemon\.profile
> //DAEMON1/anrdaemon/.profile

I think you mean cygpath -lm //DAEMON1/anrdaemon/.profile

> [\\DAEMON1\anrdaemon]$cygpath -u "\\DAEMON1\anrdaemon\.profile"
> /DAEMON1/anrdaemon/.profile

I think you mean cygpath -u "\\\\DAEMON1\\anrdaemon\\.profile"

> [\\DAEMON1\anrdaemon]$cygpath -m "\\DAEMON1\anrdaemon\.profile"
> ///DAEMON1/anrdaemon/.profile

I think you mean cygpath -m "//DAEMON1/anrdaemon/.profile"

> [\\DAEMON1\anrdaemon]$cygpath -lm "\\DAEMON1\anrdaemon\.profile"
> ///DAEMON1/anrdaemon/.profile

I think you mean cygpath -lm "//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.

Cheers,
Peter

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019