delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/16/00:40:30

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=XJg0D9wzuNKccVV+IrNREnnECDZJs/zyvbOaGHVel+D
cYKjE354g7/0yBENEzkdJBBncoilMekA9HEhpSkpbheXN0TdIG6gUBs5YftKVKE/
XzKmqRxPluejUqHzqD4dmpwQmMD5cpM9uRtkmVMCLxAjdVVFae+B5ENmiWNGwmoA
=
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=hdpY+qvSFIK5akJvgnidq5EKaKY=; b=WEfeVPhrWgvJrpC76
cmWLUesezulVmLX7Py9uVaJnEz3ztzRU8yAZMjR1h5PmtK7ATyKNDUe4Ig4/4e6r
4j1iNcvAJf9cjXpIcetPbKMI6CR+ehaMqCoLwHMNDh8wfXSdH31/Z58xDLBxmKfs
MEd4dvsvYyoxoBdFN6VqOrpcoY=
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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ee0-f47.google.com
X-Received: by 10.15.24.136 with SMTP id j8mr18885169eeu.1.1392529208323; Sat, 15 Feb 2014 21:40:08 -0800 (PST)
Message-ID: <53004F35.4020301@googlemail.com>
Date: Sun, 16 Feb 2014 06:40:05 +0100
From: m0viefreak <m0viefreak DOT cm AT googlemail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Little cygpath improvement request
References: <111910987 DOT 20140214222230 AT mtu-net DOT ru> <52FE6397 DOT 5010105 AT cygwin DOT com> <187072112 DOT 20140214234339 AT mtu-net DOT ru> <20140215125606 DOT GM2246 AT calimero DOT vinschen DOT de> <1745533059 DOT 20140215225708 AT mtu-net DOT ru> <2826041 DOT 20140216062749 AT yandex DOT ru>
In-Reply-To: <2826041.20140216062749@yandex.ru>
X-IsSubscribed: yes

I'm not exactly sure what you are trying to accomplish with that patch,
but it looks to me as if everything you want is already present:

  cygpath --help

states

  -i, --ignore          ignore missing argument

which outputs nothing if you pass it an empty argument (or even without
any further argument at all).

Isn't that ( cygpath -mli "$possibly_empty_var" ) what you need?

--
m0vie


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