Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FF4FC05027 for ; Fri, 10 Feb 2023 01:10:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231146AbjBJBKX (ORCPT ); Thu, 9 Feb 2023 20:10:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjBJBKV (ORCPT ); Thu, 9 Feb 2023 20:10:21 -0500 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CED8B4B1AF for ; Thu, 9 Feb 2023 17:10:19 -0800 (PST) Received: by mail-il1-x133.google.com with SMTP id s9so479831ilt.1 for ; Thu, 09 Feb 2023 17:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=v/rk3szIYpKAIRaNgREy62PBz6/2LxRSXh1DsRADJYU=; b=glWpLY4dwbYR6L+EuXgrM7xpnBQwcy4cG8tTl4Iu6S5oeAe9XEeTtFQedpEob1PVsf XDhBc6dcvKP5ITbMhU84oC9wLHu4u61U/5Mm5CDuiBGjg1ff+u7y+a6Wx+VivD/VPKcs 9aWC7QzL9MdRG8WZGfGt+erauZpDeGAPE4C04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v/rk3szIYpKAIRaNgREy62PBz6/2LxRSXh1DsRADJYU=; b=lswxmjWMoyALTUy6ojiBxCzZ5nX0d5Q4VKSUJ3ndSfu8pYeumBYhteMxR8AcgNDWm7 tfFTjJKtEL9XrkLA4uLKtQnT+gYHGY5v3j0AcC5bvdcbGva0hNvAnWLNBZcXQPVfHyW3 4j9YJWeI2uKxEzXpdtAawbOCrc1oAWri+/x8LMSfhVM4GQdXCvA9krppNG9AilAv/tNQ miBQmeRXoXyZDZUQo0QmIWbfJqxUVSAItk/i50+m2XGXQ6wm89I9zkU6cICQKpArT5Zo DZgxEU3xTMd7dEU3JsbLcWAWt15bXNR/MMbv5YQF3SuCQLNG8ymeAzxGekyxrPDr+SYq 6F6Q== X-Gm-Message-State: AO0yUKUhPEqBkVbiJKYO3iRvt991o44gMecBa2ckiaiIN7jAYFj3mzFw uPL3eoaXl1LKs6wBUaclkSbL3A== X-Google-Smtp-Source: AK7set/lwVwMrh2gIxWEj3tHiccsh9dwYjh13O3kYY/qcLOTXN81uOX17NqMOY+FJluKLmXrlqXPYA== X-Received: by 2002:a05:6e02:1d95:b0:314:1579:be2c with SMTP id h21-20020a056e021d9500b003141579be2cmr872204ila.0.1675991419088; Thu, 09 Feb 2023 17:10:19 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id o3-20020a02c6a3000000b0038a56594026sm887540jan.66.2023.02.09.17.10.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Feb 2023 17:10:18 -0800 (PST) Message-ID: Date: Thu, 9 Feb 2023 18:10:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v3] selftests: use printf instead of echo -ne Content-Language: en-US To: Guenter Roeck , Guillaume Tucker Cc: Shuah Khan , Gautam , David Laight , kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kernelci@lists.linux.dev, Shuah Khan References: <20230209085536.1076662-1-guillaume.tucker@collabora.com> From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/9/23 09:19, Guenter Roeck wrote: > On Thu, Feb 9, 2023 at 12:55 AM Guillaume Tucker > wrote: >> >> Rather than trying to guess which implementation of "echo" to run with >> support for "-ne" options, use "printf" instead of "echo -ne". It >> handles escape characters as a standard feature and it is widespread >> among modern shells. >> >> Reported-by: "kernelci.org bot" >> Suggested-by: David Laight >> Fixes: 3297a4df805d ("kselftests: Enable the echo command to print newlines in Makefile") >> Fixes: 79c16b1120fe ("selftests: find echo binary to use -ne options") >> Signed-off-by: Guillaume Tucker > > Reviewed-by: Guenter Roeck > Thank you. Applied to linux-kselftest next for Linux 6.3-rc1. thanks, -- Shuah