From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-2.7 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 7B69D2055E for ; Thu, 2 Nov 2017 17:21:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753707AbdKBRVG (ORCPT ); Thu, 2 Nov 2017 13:21:06 -0400 Received: from mout.gmx.net ([212.227.15.19]:54274 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587AbdKBRVF (ORCPT ); Thu, 2 Nov 2017 13:21:05 -0400 Received: from virtualbox ([37.201.193.73]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LfSeH-1dLb8Y1z7R-00p1wa; Thu, 02 Nov 2017 18:20:55 +0100 Date: Thu, 2 Nov 2017 18:20:25 +0100 (CET) From: Johannes Schindelin X-X-Sender: virtualbox@virtualbox To: Junio C Hamano cc: Eric Sunshine , Git List Subject: Re: [PATCH 3/3] mingw: document the experimental standard handle redirection In-Reply-To: Message-ID: References: <436f0fb010709fe0d90460dc7bc1b3482237b192.1509382976.git.johannes.schindelin@gmx.de> User-Agent: Alpine 2.21.1 (DEB 209 2017-03-23) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Provags-ID: V03:K0:a6RbT7TWVm1Fs4vuHeD6vXqYDXPpqlH0w912ArULIiQc0hUaYQn 1kIHBDhO7Uxka3T5Xc2dtPqrNb6laQCt4+szv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k List-ID: X-Mailing-List: git@vger.kernel.org Hi Junio, On Thu, 2 Nov 2017, Junio C Hamano wrote: > Johannes Schindelin writes: > > >> > I feel this is the wrong way round. `>/dev/null` may sound very intuitive > >> > to you, but this feature is Windows only. Guess three times how intuitive > >> > it sounds to Windows developers to write `>/dev/null` if you want to > >> > suppress output... > >> > >> It would be just as intuitive to write '2>&1' for dup-redirection, > > > > No. You misunderstand. I was mainly concerned with the `/dev/null`. Every > > Windows developer knows what `>file.txt` means, and many know what > > `2>error.txt` means. But `/dev/null` is not Windows, period. > > Actually I did know that much. > > If I was correct in assuming that "2>&1" is just as foreign as > ">/dev/null", then we should be shunning "2>&1" just like we shun > ">/dev/null". That was all I meant to say. Did you know that `2>&1` works in Powershell? > Are you saying "2>&1" is just as likely to be known as ">file.txt" > and my assumption of foreignness of "2>&1" was incorrect? > > Side note: would ">NUL" look more familiar, I wonder, and > can stand for ">/dev/null" for the target audience? > > > ... It is so not > > Windows that Git itself translates it to `NUL` (which you Linux die-hards > > won't have a clue about, I would wager a bet). > > Ah, you lost your bet. When can I collect ;-)? As soon as we meet in person again. Ciao, Dscho