Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1560882imj; Fri, 8 Feb 2019 03:37:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IYuvRnhtZE7+5fTtNtVn0kzE2AzLZP7GOWcn87C+3l0pWBBfngfulfpkFf/ZDSpycsKZ1Yx X-Received: by 2002:a63:c451:: with SMTP id m17mr19838871pgg.27.1549625862101; Fri, 08 Feb 2019 03:37:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549625862; cv=none; d=google.com; s=arc-20160816; b=vK9K0hE901RNfv2uYxWNf1bEG964XLiQOC7w+cRYGzmVfD4s8ixBcHqF7gM2F/G+Vj LOVOQHbk3ZNnKzSQTF9QdWSO+a4SjsxAS92dU53npq1M/ydpFm/XxQjrOqZmN38UKzFm jlz3khI2akaY+i8Qk/cLDb5pwZXB78iPKfQy4IF8QXQgQWjWUxIqBWeKfutsgXeagagN olDVrLG8tkglHdm3vTAHUztibxGEEQR7XP+rIXM7qTv+Npf9ux56+AVse7zDYl1EMevu d1W3rEjcALMDPPBQsHKisr+SwVZRlq6aCF8hlCJpsmDi7v5scmMWS9hKWYj2ERNlu3/s t3iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from; bh=JvrdlFyxi6xGfD2l9VKFMCmANSZ4IwtQ2MbUDjz850U=; b=ZGEu3bZ9zqc6SiTOVkzfhZ/9U3WkYlIDseHKj+d/EwNJgnf/PFIGb25AwAlTm+PnHe BD20mUdmqiYNXRhGgbO+ICjd/HW7k0qRmkv1d89AG/q15jutS4Oxv8AjgBw56Y/bIbmr hB6pHI/xEeh38ffDSfVku53ZUDJWJbPvqn59nbpk5w5xrmyE0F5VfMhOflxge7gTuoqQ czDcUvKL1/voQVguGSrUYnGs1OG3U2KZT09XuqwYU0BcrB37iXmgKJ8CeRRWUQ48Vpob sm4c+yv1IicZLIR+YZw8E8oN+NZkJz7GcGy40W2v9ahbtP1NYwTKovdOfljFVHCjnV9f N+Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si2088759pld.71.2019.02.08.03.37.26; Fri, 08 Feb 2019 03:37:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727356AbfBHLg1 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 Feb 2019 06:36:27 -0500 Received: from elephants.elehost.com ([216.66.27.132]:26778 "EHLO elephants.elehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726547AbfBHLg1 (ORCPT ); Fri, 8 Feb 2019 06:36:27 -0500 X-Virus-Scanned: amavisd-new at elehost.com Received: from gnash (CPE00fc8d49d843-CM00fc8d49d840.cpe.net.cable.rogers.com [99.229.179.249]) (authenticated bits=0) by elephants.elehost.com (8.15.2/8.15.2) with ESMTPSA id x18BaO6Z061921 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 8 Feb 2019 06:36:24 -0500 (EST) (envelope-from rsbecker@nexbridge.com) From: "Randall S. Becker" To: "=?UTF-8?Q?'SZEDER_G=C3=A1bor'?=" Cc: "'Jeff King'" , "'Junio C Hamano'" , , "'Linux Kernel'" , , , "'Duy Nguyen'" References: <000d01d4bf9b$d5d48da0$817da8e0$@nexbridge.com> <20190208111002.GU10587@szeder.dev> In-Reply-To: <20190208111002.GU10587@szeder.dev> Subject: RE: [Breakage] Git v2.21.0-rc0 - t5403 (NonStop) Date: Fri, 8 Feb 2019 06:36:17 -0500 Message-ID: <001001d4bfa2$84dcff70$8e96fe50$@nexbridge.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKt9XefXcIt/s43+J5K5t2qIJW2rAEkL8zupBo39IA= Content-Language: en-ca Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On February 8, 2019 6:10, SZEDER Gábor > On Fri, Feb 08, 2019 at 05:48:27AM -0500, Randall S. Becker wrote: > > We have a few new breakages on the NonStop port in 2.21.0-rc0. The first > is in t5403, as below: > > > > /home/git/git/t/trash > > directory.t5403-post-checkout-hook/clone3/.git/hooks/post-checkout: > > line 2: $GIT_DIR/post-checkout.args: ambiguous redirect not ok 8 - post- > checkout hook is triggered by clone # > > # mkdir -p templates/hooks && > > # write_script templates/hooks/post-checkout <<-\EOF && > > # echo "$@" >$GIT_DIR/post-checkout.args > > # EOF > > # git clone --template=templates . clone3 && > > # test -f clone3/.git/post-checkout.args > > # > > > > The post-checkout hook is: > > #!/usr/local/bin/bash > > echo "$@" >$GIT_DIR/post-checkout.args > > > > This looks like it is a "bash thing" and $GIT_DIR might have to be in > > quotes, and is not be specific to the platform. If I replace > > > > echo "$@" >$GIT_DIR/post-checkout.args > > > > with > > > > echo "$@" >"$GIT_DIR/post-checkout.args" > > > > The test passes. > > Wow, this is the second time this "redirection to a filename with spaces > under Bash" issue pops up today, see the other one here: > > https://public-inbox.org/git/20190208031746.22683-2- > tmz@pobox.com/T/#u > > In short, Bash (when invoked as bash) doesn't conform to POSIX in this > respect; for a (too detailed) explanation see: > > https://public-inbox.org/git/20180926121107.GH27036@localhost/ > > Even our CodingGuidelines suggest the use of quotes around the > redirection's target. > > > I wonder I should provide this patch or whether the author would like to do > so. > > Well, since you didn't Cc the author, he might very well overlook this issue, > so I think you should ;) + Nguyen and Orgad Thanks. Fix has been submitted as a patch. This is definitely a common one. ????