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=gQ5xrF73s/A9K8bT IiVcyIqhlWXzKnTkNkZHAS5Fizu238hZvqADG+9NBmRmaQH/ehbQKB1LhBa9sTqx 7zaLgt8d2QUnlvGmJyaRPShkUukyJI3Htzc9PsPoRW2eVWVnKI/KSugWZnDHj0YA WL+1+42ckvHQR6DECv03gKwRPdo= 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=Xq/2iBtirtZqM6mXjRdGF7 pWXNw=; b=hGpmjxRSVHf6CNGNuVDtfuHAnEF1g5GF25LCAk7/jqfuMQZBBFsP9p vZUtM5twDrHZvh7KWQnbgyqxS4Kv3B0hQPRV2GGMHl+RMkKy5xwAx/V4FaVh+cl7 Dr5QoRONMslwUli/+R2rQTIzaa0+8XgiUSOODwUuF19sJ0nBG+1ik= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=BAYES_20,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=HX-Priority:Normal, english, yandexru, UD:yandex.ru X-HELO: forward106p.mail.yandex.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1550235002; bh=RtaGMx62C0wFuxAdz95ctr9zfA0BOEN03LHXkKwStVg=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=vdFuZcA7CO0zW99M68FWs0KcxKc4bQYCikx58TcZUo9IYiYLMenW12qnuxA0zGT7M GZt+eIyLLku4b1bFxun8prF0rsn9k5mU8uESMX4GAWmh/76hw1CUpuJXpuYe+8gwrJ lCq+21hzyzXLTc/CvZ545XtJnhJWjMLEZfGW3yBg= Authentication-Results: mxback18g.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Fri, 15 Feb 2019 15:45:02 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1282767785.20190215154502@yandex.ru> To: Michael Haubenwallner , cygwin AT cygwin DOT com Subject: Re: textmode for stdout, what is "correct" now? In-Reply-To: References: <739ed5ce-6902-d702-e152-65dc2c1da667 AT ssi-schaefer DOT com> <20190214162002 DOT GA4950 AT calimero DOT vinschen DOT de> <6aa280c2-4769-0772-91d9-c73a3a3d9680 AT ssi-schaefer DOT com> <20190215102251 DOT GA2702 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Michael Haubenwallner! >> >> For scripting, d2u should help. > Plus, to be portable: type d2u >/dev/null 2>&1 || d2u() { cat; } _d2u="$( which d2u 2> /dev/null || echo cat )" if you want to be THAT nice. > So, firsthand I do prefer to avoid that need. +1 -- With best regards, Andrey Repin Friday, February 15, 2019 15:41:48 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