delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/14/14:50:34

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=TptKaHD+V5jkgRlx
5CMYT9hj0FzK8GuVCK+v3YpOfUX8J+81m9pjVav3gAM5MOaP5pSl+faeF43jcot4
LfbreAwvDJcXCScjS+C6LKcqcMb64A8RPZPrfiV6SWQCzMPfbwijX0LLw3oMReKU
q3ZU6hObnm/NoeHyUskTWJZG9gk=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=c5IWkK4ECLBSMCjuOsXhUj
YLbmo=; b=LnhxQLXeamxo3i/+iJ1GvFjxXz3HX7EmrCQk1vH06jvtAdYzyvIO26
sO1zghexNK9WRjTsMMaP+Sp83I2/nWdNit7OVwBa/Sht4kB0Au/kbcADxr9J1iDm
lY+8/2yitW1wepF43YLPUF5qf5Xn1ah6DD/LXq64Y71rlgeuxarL8=
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=3.2 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Fri, 14 Feb 2014 23:43:39 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <187072112.20140214234339@mtu-net.ru>
To: "Larry Hall (Cygwin)" <cygwin AT cygwin DOT com>
Subject: Re: Little cygpath improvement request
In-Reply-To: <52FE6397.5010105@cygwin.com>
References: <111910987 DOT 20140214222230 AT mtu-net DOT ru> <52FE6397 DOT 5010105 AT cygwin DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Larry Hall (Cygwin)!

> On 2/14/2014 1:22 PM, Andrey Repin wrote:
>> Greetings, All!
>>
>> I would like to request a small functional change for cygpath.
>> In the event of empty given path argument (i.e. `cygpath -ml ""') silently
>> return an empty result without error message.
>> This would greatly simplify wrapper scripts.

> Why isn't redirecting the message to /dev/null not sufficient, something
> like this (bash syntax)?

Because it'll require creating a redirection? And this kind of redundant
inserts blurring the code.
Returning a non-zero exit code would suffice for debugging purposes.

> cygpath -ml ""  >/dev/null 2&>1

Err, not > /dev/null !!! :D


--
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 14.02.2014, <23:41>

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

- Raw text -


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