From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84154 invoked by alias); 15 Feb 2019 12:50:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 84070 invoked by uid 89); 15 Feb 2019 12:50:07 -0000 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 Received: from forward106p.mail.yandex.net (HELO forward106p.mail.yandex.net) (77.88.28.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Feb 2019 12:50:05 +0000 Received: from mxback18g.mail.yandex.net (mxback18g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:318]) by forward106p.mail.yandex.net (Yandex) with ESMTP id B94151C8282F; Fri, 15 Feb 2019 15:50:02 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback18g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 52ipSeYgu0-o2Yu4Fdb; Fri, 15 Feb 2019 15:50:02 +0300 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 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ybjDalnHWn-o2eWOZBk; Fri, 15 Feb 2019 15:50:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Fri, 15 Feb 2019 12:45:02 -0000 Date: Fri, 15 Feb 2019 14:20:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1282767785.20190215154502@yandex.ru> To: Michael Haubenwallner , cygwin@cygwin.com Subject: Re: textmode for stdout, what is "correct" now? In-Reply-To: References: <739ed5ce-6902-d702-e152-65dc2c1da667@ssi-schaefer.com> <20190214162002.GA4950@calimero.vinschen.de> <6aa280c2-4769-0772-91d9-c73a3a3d9680@ssi-schaefer.com> <20190215102251.GA2702@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-02/txt/msg00181.txt.bz2 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