Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp973587imp; Wed, 20 Feb 2019 12:33:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IaUwqX7cZn7FL5VQlPjCkeMCA47gciQ3JKRYyr4tXPTcxfc6fYDleZvzHqbwg8aNXFKsgyL X-Received: by 2002:a63:e447:: with SMTP id i7mr30658184pgk.70.1550694834998; Wed, 20 Feb 2019 12:33:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550694834; cv=none; d=google.com; s=arc-20160816; b=bm7dqPKkMfQ9YvIU5FVxuPdzvW8Zc5kB7BcxvEJzRZRnLL5Bz1swpnOWSmXMzjtEj1 +12HWCk1y4zK0GrIIwZ0rZp5rVwzNYQkSC+cMh1HvssVBbXMDCU1cR1P8x5vZm8S+gcp 6Ee0iIKGLKv3PFQ85Sfiz1HyoLZRgDWzDJTRm1DeZDofXd2PQtIVqZvvf+CLN9qBtx5B xI7YNDm4spUMGOAc/FoghnB6YMXyq5rVmVaNqB4ezKnqfnfvcZiipIUKMJJuQwwPchIG f324lBvm0ogVXg1ky/1C0f1QcSx3i734V9sKrk+KDHPl23AZv6/PfRJaY0fZEhV1R23x FIhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9rvJC28Pu1kMde8B2+S1FEhHJn9XNrl65WgwCFRpHzQ=; b=p/2BhlDvBYQfqL8d2Km2QEPZoi1fnBaLyN3FEgzQHXIbaH7R9+8FMnGLi9ZEZawikG +n5wBCmnvdM0el7nudLRFzWxhyOmQ4T4sYkRNxtldETxZbEUNn1xOd8zb08mbG7ev7wD h31o82iGGSiXo+pYuim6L4qCtYS+9nXLxb/OX9iAwbShuDfqZYFMWRsbXTMPu9d5JmOM tp0WNeqO5ln9K4JZL0lw/jvG7ApJcrQGqEAQqVhNaMbzMAR6z7MWgOV6QrzU1k9Oy0y+ mTwxjtT8FX8Nl+wQd1WUWL8c6GCNZsFYC6jquVwIgxUgoGfV99AVRa7LroVNmiFBcx2p WXgw== 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 o3si9007871pgh.189.2019.02.20.12.33.35; Wed, 20 Feb 2019 12:33:54 -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 S1726234AbfBTUdN (ORCPT + 99 others); Wed, 20 Feb 2019 15:33:13 -0500 Received: from tartarus.angband.pl ([54.37.238.230]:34382 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbfBTUdN (ORCPT ); Wed, 20 Feb 2019 15:33:13 -0500 Received: from kilobyte by tartarus.angband.pl with local (Exim 4.89) (envelope-from ) id 1gwYYH-0004FW-2L; Wed, 20 Feb 2019 21:33:09 +0100 Date: Wed, 20 Feb 2019 21:33:09 +0100 From: Adam Borowski To: Juerg Haefliger Cc: Steven Rostedt , linux-kernel@vger.kernel.org, mingo@redhat.com, Masami Hiramatsu , Shuah Khan Subject: Re: [PATCH] selftests/ftrace: Make the coloring POSIX compliant Message-ID: <20190220203309.fdxhriqd6r5tacyt@angband.pl> References: <20190220161333.28109-1-juergh@canonical.com> <20190220144934.22c52092@gandalf.local.home> <20190220211922.051fd2fc@smeagol> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190220211922.051fd2fc@smeagol> X-Junkbait: aaron@angband.pl, zzyx@angband.pl User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 20, 2019 at 09:20:20PM +0100, Juerg Haefliger wrote: > On Wed, 20 Feb 2019 14:49:34 -0500 > Steven Rostedt wrote: > > > On Wed, 20 Feb 2019 17:13:33 +0100 > > Juerg Haefliger wrote: > > > > > echo -e and \e are not POSIX. Depending on what /bin/sh is, we can get > > > incorrect output like: > > > > I'm curious to which shell this is. > > Quite frankly I don't know but that's the output we get when we run it in > Jenkins. I'll try to find out. The only shell that did not support \e was dash -- I fixed it myself on 2017-01-24; thus I expect any Ubuntus prior to Zesty to require \033. This means your Jenkins likely runs Xenial. \e has been supported since ages in at least: bash zsh mksh sash posh ksh busybox:sh; also in perl python ruby lua php, gcc clang tcc -- MSVC being the only other exception I know about. Indeed POSIX doesn't specify \e, but as it pretends there are charsets other than ASCII and EBCDIC, it can't. There's no escape in its "portable character set". Meow! -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ ⢿⡄⠘⠷⠚⠋⠀ Have you accepted Khorne as your lord and saviour? ⠈⠳⣄⠀⠀⠀⠀