Received: by 10.223.185.116 with SMTP id b49csp4026031wrg; Mon, 19 Feb 2018 09:45:29 -0800 (PST) X-Google-Smtp-Source: AH8x2243uu9E7I5jTC9hLRVluEMY9oCEM8k+zHdVMFtAlq3KRkC9fwEKPviOgMXo6ssknJFLJnSZ X-Received: by 10.36.10.149 with SMTP id 143mr21429401itw.72.1519062329413; Mon, 19 Feb 2018 09:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519062329; cv=none; d=google.com; s=arc-20160816; b=Z4qv9ovQ0DMV/vTnm5szqktFjl1OzqZvpJgnK3rldagT4BkwmDa+Tynz5D2Wurn+Eb cIN6fCgguhSZkRBa/kHxSQJ0Tr9YC1gq0lmEqV2ZJKeaLWdo5lKa0y/qx2OMxpNAM7zc d+YUPD+m2bJHDE2l+WX984s1m5Lsh3fvL+PnNfr9ptfXjftJ4JGezwsE+DrdaL6/Tlso LWhFvFLWEHFDF+crH/u0Pu9mcDcNWP6WVAD8yJr6q3tHLsYPZUahRsJ3D36oyLiyp2Hf 6+Q6WqRtr84GvSwB/XcagjDNgNTccT+rNIOYzLQd3K+j0X8aJaUP10tH1keRTrHio3WP g3yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=goZO8zOSfL4zsbl+jU/gJFZNdnJLSzlijW0hKE6tW9s=; b=03ktIKk3ONERi8V2tV7f/ea/avzW+5Y/6NgfpSdyr8GGhT8XZI5KpF1UNOt8io1C2F JmN8eOdYy2F6pNMnjqcNZFi0T3CDgEHqP/KMF39D/gVxG5+kp1ln1GLeWBp+CL0RQOOV 6e1NDYwC0LJTiNfH1nSR0WJpDjG6UZpMMxpowxLwFk1TNCCRiXPSXHyYsKtkEWAoJ+iS Zo7B2wvQJ993F44hT0DP6/4KBRg4Hzl8SZT6lrbDAojvURwlz1RzOr3uFD0DqjKHMpch ibqjTE8BNIbiE4xsV1r4gSL4lGAdDHRCeYooem+Z49g2SFHC06qTQQ3xJowvWn+5rjTf DYhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lNwgslu1; 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 t23si5316644ite.2.2018.02.19.09.45.16; Mon, 19 Feb 2018 09:45:29 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lNwgslu1; 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 S1753421AbeBSRob (ORCPT + 99 others); Mon, 19 Feb 2018 12:44:31 -0500 Received: from mail-it0-f48.google.com ([209.85.214.48]:50397 "EHLO mail-it0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753267AbeBSRo3 (ORCPT ); Mon, 19 Feb 2018 12:44:29 -0500 Received: by mail-it0-f48.google.com with SMTP id a75so3217728itd.0; Mon, 19 Feb 2018 09:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=goZO8zOSfL4zsbl+jU/gJFZNdnJLSzlijW0hKE6tW9s=; b=lNwgslu163yf7anCdl0h0oLkSkVaLEr851Mp0zG/g9qQsdD9VVGFJs4tG9phNwOemg O/8gXvFYdQ6jqimo8ywLAP3gmvU7vup5QLNbOzFfI8FahtdvPshsqXZSYGynnTodudB5 U1I2PO3FdS0ymxmRnm9KUsR6FNzVaLgna1xkWvg/FvNZKvXWBqcWFx8wDX92FlxiMdOS 7mU2N56CQ3AiqWAvXzu8A70a24eS/+6UdJ9tQvQlDnw2lu6okwK7RjGTOxfi9BN02sxd nUjsNc2DnVEyUNmTI2XyjP/Nc8FdvQnA56ybag4rphu6tyGUBFDBS2s0c35N62uipCMu +ZkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=goZO8zOSfL4zsbl+jU/gJFZNdnJLSzlijW0hKE6tW9s=; b=IDGtfii3WVRoHQDr63ZMHHGs+9rhUWEFl2g8xKiRY/P5J0Gg3D3rNBVmldgiWlefs4 LCuorZQsFP+ah2GOHB+qOr5+tjmsPJ8Azf8jTO1vip0LxLj6TxZ43jcHcL5w/9P5CPYs NxwXMIGjo7wh+hFotz4U2MptqQF78duYz7PveYFcC3/vgqBu+C42UhO/QAYNjdjzmwqs oVdVCqKBiOw8ybbG73cgUVl/euQjGeGBPFmsmLxHQ7tYQQMtu/pE2bkuh+UJ4lF5KEeF tSF0p2XmgOPtc0MJSIwTmwbpMrT19T/chtzPvPP/5pTu25OywvpiXmfTxkXVPQrTTXun qciQ== X-Gm-Message-State: APf1xPBrJ9U8GDL/mgZVO6WIjNKzz5SbaEP5jK7yOtHJwn8I1RgxYUDu 3IMqua7BIoYA9/bIgDyWKjIMbnroYvJKjcJOJgI= X-Received: by 10.36.150.134 with SMTP id z128mr18698147itd.108.1519062268530; Mon, 19 Feb 2018 09:44:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Mon, 19 Feb 2018 09:44:28 -0800 (PST) In-Reply-To: <20180219044845.7cnqpgyiinn6hkyb@huvuddator> References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> <1518806331-7101-12-git-send-email-yamada.masahiro@socionext.com> <20180219044845.7cnqpgyiinn6hkyb@huvuddator> From: Linus Torvalds Date: Mon, 19 Feb 2018 09:44:28 -0800 X-Google-Sender-Auth: e1mrKvabN4MwqGju5ZNeS9-zIgA Message-ID: Subject: Re: [PATCH 11/23] kconfig: add 'shell-stdout' function To: Ulf Magnusson Cc: Masahiro Yamada , Linux Kbuild mailing list , Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Randy Dunlap , Sam Ravnborg , Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 18, 2018 at 8:48 PM, Ulf Magnusson wrote: > On Fri, Feb 16, 2018 at 11:17:52AM -0800, Linus Torvalds wrote: >> >> Can we *please* make "shell-stdout" go away, and make this just be "shell"? >> >> The rule would be very simple: >> >> - if the result of the shell command is a failure, the result is 'n' >> >> - otherwise, the result is the first line of stdout >> >> - if the result is empty, we replace it with 'y'. > > Could there be cases where you'd legitimately want to put empty output > from a command in a string (that would be common enough to matter)? > That'd get messier with the above rule, as it never generates an empty > string as output. Hmm. Maybe. Something like "LOCALVERSION_AUTO" might want that where you add a version string if something is true, and maybe you'd use a shell script for it and generate it at Kconfig time. I'm not seeing anything like that right now, but I could imagine it in theory, so your worry is valid. > Would you still be as opposed (or more opposed...) to having two > functions if they were called something like 'success' and 'stdout' > instead? Maybe the naming is indeed what annoyed me the most. I do like your "success"/"stdout" more than "shell"/"shell-stdout", because with that naming I don't get the feeling that one should subsume the other. Linus