Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3626648pxf; Mon, 15 Mar 2021 14:14:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt7e6FJ945TY4R5Zj5MqOG8+nxi5DpBhvZQBzUmOHbrV6p0bra5rPOriiXJ1zQZ3Rm3/4s X-Received: by 2002:a50:fc94:: with SMTP id f20mr32340899edq.370.1615842854351; Mon, 15 Mar 2021 14:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615842854; cv=none; d=google.com; s=arc-20160816; b=kLeb+G479j473XoiXUmux/UCamKVf3Zqkjj1L0fyg4FMIXQXEqLirE2qu/qgO60kX8 jR3z7MaxKL/xaEHj/aI86KLdiBWd2xgKVtYoXF0O61WJqy/xwP5TQxBxqxa+GJpwBcIL IC43Kse4mnVPVDwCGL+m2NLBFRTkZnF3RI3aZ7sXebK/q99FLeTiAcg4HEpY8lRtcq5g SDuAqlCuNIV/aKHdEg76LZbfijsntIcSUudP0TU/igBkThIuUMh3m9F4bLB14L0iraTy ZyARA94X/adRtzptreRkXtVFLGl730/ZGCIAgdseSvC7mWhmPnG/YLVNEMuaTHuxEhga SNNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ETITyohOMGTA5c4SIeM+KSc+vnY0j80+gbmDYG75nz8=; b=IUzQVGRudj0FtusQIVIabrffB4yoHgxv8QfzVjFFQ2SuNIRFcykGx6QvbAREFGHQ36 DtCfylVFVmp6ztZC7a4JnCeh/FmVMUhuOgEtB5ECR3PzgrFIZ0GwrU1Ui5+oDjjhIrm6 1by9Xug12NCOnaXUZ4Kj/pCCFo0+fKtW73d6kS5yl+q1tc8JgToSApDwJHTNTsMmbQCV CeMlSffkP3M59rBd4okTGyEhKrZZ+5oKyvFERQ4aBbSznTUxD7JQItMCyWHn+q4b5hNh BBVHi3tOYtdI8uItdho6RY3+TjfEV1sOls78uO3CG7MHTGg6Fjon7TCREQaunWn5Tk00 TBsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=eUXS+eYj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk18si12184240edb.178.2021.03.15.14.13.51; Mon, 15 Mar 2021 14:14:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=eUXS+eYj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbhCOTNa (ORCPT + 99 others); Mon, 15 Mar 2021 15:13:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbhCOTND (ORCPT ); Mon, 15 Mar 2021 15:13:03 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46371C06174A for ; Mon, 15 Mar 2021 12:13:01 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id r3so50453854lfc.13 for ; Mon, 15 Mar 2021 12:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ETITyohOMGTA5c4SIeM+KSc+vnY0j80+gbmDYG75nz8=; b=eUXS+eYjf+Yk/kl3W0OvWXfvjkkqHNRrjwdTH5TwORbKwcYVFwXMs9SmogjPXwISOy yvExM7tfpgvqw52fRnOOZ6TV1JmLafFLHrtyyX6WiqdPFAHBille72a5D4sWCa/Tx+yH tg9SxqVJrMSQftrhwh2aK0lNjc9j0s0vIvTU8= 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=ETITyohOMGTA5c4SIeM+KSc+vnY0j80+gbmDYG75nz8=; b=RicZs/U26uQpjCGijYh7YF1P42l6psQyCVd6DeABnw2HSgbdgE19FY7fuz53qIDjOK pOM3V2IulZ7N27hoh3TmQwvMzjAfT0T/r1azvKZsvdA5VqfJK95GG0nEpBScfNekA1v0 DPfcj1YeZ4IOfJ/eTAy5c7K1XBGLEYPGbr+refamgiL5DPQ1qZ/LnTduTUpb2QIIHZeg Gr3UeYcXofsmiV1g8RVJZW/9PmOCRf8z7hdSl+NADg9sVKS0TDEMW0BOzbsazsC1Qit/ gcM0lVF81SFV3ZQyvwYo8TcPZyOScqH1LfvW+AP7OzyBaa+ytZxERdy3j/4QQnKwXPWr vJGA== X-Gm-Message-State: AOAM533II1ALHUE+HoWNFB1rIz7aDdCivcxMnYtxHwiAm6EZZJcpiqLo few3LJLHH4uqTBROykvs7+nMzhl008J/1w== X-Received: by 2002:a05:6512:ce:: with SMTP id c14mr9002595lfp.64.1615835579256; Mon, 15 Mar 2021 12:12:59 -0700 (PDT) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id 197sm2992299ljf.70.2021.03.15.12.12.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Mar 2021 12:12:58 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id 18so58579063lff.6 for ; Mon, 15 Mar 2021 12:12:57 -0700 (PDT) X-Received: by 2002:a19:ed03:: with SMTP id y3mr8614258lfy.377.1615835577584; Mon, 15 Mar 2021 12:12:57 -0700 (PDT) MIME-Version: 1.0 References: <20210311130328.2859337-1-oberpar@linux.ibm.com> <202103120329.VU4uJ0yZ-lkp@intel.com> <09373c3d-73e8-933a-24ad-5c4ba4fdc615@intel.com> In-Reply-To: <09373c3d-73e8-933a-24ad-5c4ba4fdc615@intel.com> From: Linus Torvalds Date: Mon, 15 Mar 2021 12:12:41 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [kbuild-all] Re: [PATCH] gcov: fail build on gcov_info size mismatch To: Rong Chen Cc: kernel test robot , Peter Oberparleiter , Andrew Morton , kbuild-all@lists.01.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 14, 2021 at 7:32 PM Rong Chen wrote: > > It can be reproduced with '-a' option in dash: Oh, ok. That kind of explains it. 'dash' is trash. Please somebody make a bug report. > $ a="!" > $ [ "$a" = ".size" ] > $ [ "$a" = ".size" -a "$b" = ".LPBX0," ] > sh: 2: [: =: unexpected operator This is 100% a dash bug. There is no question what-so-ever about it. This is not some kind of "POSIX is ambiguous", or "the handling of '-a' is complicated". It's simply just that dash is buggy. > While dash supports most uses of the -a and -o options, they have > very confusing semantics even in bash and are best avoided. No, they have perfectly sane semantics in bash, and in POSIX. See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html and there is absolutely zero question that bash does this correctly, and dash does not. But yes, it seems to be easy to work around, but still - could some Ubuntu person please open a bug report on dash? Linus