delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/09/16/05:56:55

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:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=O6kCguJcFv0QAUb1yCJ0QZFqR/yoA
JqADmF3HiZFhvVUy5imW+C5pEWnZO/HjTmklCGOA8nTMLoZ+gTs/OQj/moSQWrWC
cY9u93QqXO+pvkOEzjB0QxuFoXTugfSDKou7Y3pXcoqLPvMS2jBGek1o+b+RNUxz
S20OseagOuJ1FU=
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:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=i19XlpGaBz88vZOktA4zm0E18Gs=; b=Mif
H1TuvmM+3eGrrXzCUUaUehNJQ9nnPepUyMrZWXa9Mj8q1M397dXvYPDbI1W+0qaY
whSMA4JbStDFZ34G2KxFAL9Ghd7jtDG0GmWkabj7GA0cPYaVrX0p72bYxFoOVS3Y
yIu8JxN9jG7KAQRrsLsBscHHEBh1eC2336uPKfPA=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,NO_RELAYS autolearn=ham version=3.3.2
X-HELO: mail-ie0-f181.google.com
MIME-Version: 1.0
X-Received: by 10.50.49.65 with SMTP id s1mr6004356ign.43.1379325397762; Mon, 16 Sep 2013 02:56:37 -0700 (PDT)
Date: Mon, 16 Sep 2013 10:56:37 +0100
Message-ID: <CAF+hkWo0jXKKLM8pS8gZLG0rak+wcLpWJdS2He2_=MxYb0gpYw@mail.gmail.com>
Subject: Re: cygpath -m behaviour change
From: David Griffiths <david DOT griffiths AT gmail DOT com>
To: cygwin AT cygwin DOT com

> Yes, that's exactly right, assuming that 'boo' doesn't exist.

Hi, it happens even if boo does exist. To put it in context, the
script in question was attempting to determine the current directory:

CURRENT_DIR=$(cygpath -ma "${0}"/../)

(I didn't write this script but I assume they did this for performance reasons.)

But anyway, as you can see ${0} always exists.

I looked at the other thread but don't see an immediate connection as
that was checking for non-existing path members.

Cheers,

Dave

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