delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/14/13:43:13

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:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=HwTcxyXkJWyHn0L/
PremNfrNL4TU0sfZJdEmm2kgOh0mf1jBM+gZbSsqYtuoLehAi+hlhGk9ISfpCm+h
m/4XpGaZf6B/jKIGp5lwI+CfOJ7iuyu3XT9sLwCXg1Q2RL6KgjgglmtBkonEAQYN
JCK/FjEVP5e7LZtW8gHCJ1HPVbI=
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:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=XE86rrMDqG7hqkIrIQqjzw
IEt5U=; b=tHsetYD5p2XqeRSfh3L/r7UPZ9Kne/eq6d+jICydH0OUIZmJOk+KBp
pDaocrv71JzsYgMQ+xyab4rPgjraOzViIImYyt/LreEZnRhe7IGtpvtWI85zLe3W
2VFXgxAmdUSzNhoWl8k9F0h+WiLvtqnYCrQzpD2vQ/FJiZrKDxc0I=
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.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173023pub.verizon.net
Message-id: <52FE6397.5010105@cygwin.com>
Date: Fri, 14 Feb 2014 13:42:31 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin 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>
In-reply-to: <111910987.20140214222230@mtu-net.ru>

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

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


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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