From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 691221F66E for ; Wed, 12 Aug 2020 16:39:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726870AbgHLQj1 (ORCPT ); Wed, 12 Aug 2020 12:39:27 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50494 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbgHLQj0 (ORCPT ); Wed, 12 Aug 2020 12:39:26 -0400 Received: by mail-wm1-f67.google.com with SMTP id c80so2353759wme.0 for ; Wed, 12 Aug 2020 09:39:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KTrrSrSiWhzkth2qPFTgSkt0TBnILq7IFTR8RUQ7Otw=; b=eG7JrgRu9ULrpWEeBfTwQLTZnQzWmG4H+SZFF+jDwSN8CTRq8JOdwiN2ItnNksrESe 0eERgZ86JrCVaLFUt/mOpzml7fPeqESkfAONlPkIYO3qvUK1zfmasa2NgpMdayNFjKyl ysdftlpPekHUQgKCxnIQIPrd4Epx4cBm8yAEHzV1r65fahGoFoY7PsKFDiYUo5lQOKPt xmd55DNDS7e6c2xLe1gLPUiz0mkRcrS1+iZOBMSKg1Ky2TcmwEuARB1MNCBsqAEzCOYS m1yS1cB2LJkD/aa0Mzep96yYorrfyIA41fdincxSmp4DAw0BvYKr2qgvAnm+8gh56uNC D4pg== X-Gm-Message-State: AOAM533xUcxH45qNTGzYHpfBvLIZELTjjIdhl7gnxc/wD69XFsjsv7vW qYbZnyMcX1SJO3ICso5pECGxTww5FFQG+ligynI= X-Google-Smtp-Source: ABdhPJzl+Gxb20K3h9ULsEmLMFVL2NUzUo2uL6UL5zk4zphsb2UHLtxhGdRX9RO6+4sb8S57Mh3T/A9XsQMVLqAFWzo= X-Received: by 2002:a1c:39d4:: with SMTP id g203mr512347wma.107.1597250365105; Wed, 12 Aug 2020 09:39:25 -0700 (PDT) MIME-Version: 1.0 References: <20200809060810.31370-1-sunshine@sunshineco.com> <20200809174209.15466-1-sunshine@sunshineco.com> <20200811183258.GB33865@syl.lan> <20200812153705.GC33189@coredump.intra.peff.net> In-Reply-To: From: Eric Sunshine Date: Wed, 12 Aug 2020 12:39:14 -0400 Message-ID: Subject: Re: [PATCH v2] test_cmp: diagnose incorrect arguments To: Jeff King Cc: Taylor Blau , Git List , Elijah Newren , Junio C Hamano , Shourya Shukla Content-Type: text/plain; charset="UTF-8" Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, Aug 12, 2020 at 12:15 PM Eric Sunshine wrote: > On Wed, Aug 12, 2020 at 11:37 AM Jeff King wrote: > > I don't think this is an error. The program can tell which you meant by > > the number of arguments. POSIX lays out some rules here (from "man > > 1posix test" on my system, but I'm sure you can find it online): > > I intentionally didn't focus on or mention POSIX in my response > because I wanted to represent the Real World reason why "x$var" is > such a common idiom. [...] I probably should have done a better job in my original response to Taylor to make it clear that I was talking about Real World (even if old) rather than POSIX.