From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tortuga.telka.sk (tortuga.telka.sk [185.14.234.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F0A582897 for ; Thu, 23 May 2024 22:39:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.14.234.118 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716503952; cv=none; b=LIs71oVdWWRJJu5Z6bU+6jN69I4Sgx3X8NgGnbglAGkrq48uhl8C9GYYMRQwMdLVjtwWspy6G/KpdMDa9D+sOWGziMtZQU3y9aJ3x0ZtQQuvsNUmc8pMvujPweJ54CQZf0cID6y2X5ia70qzal17XuRthWWUhr3M+vd+uFrMdts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716503952; c=relaxed/simple; bh=IC8CHFUOB5XDaZjkX5gQ9fqpMZMghBY0w/Y7DlpVm5s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EK1ljolt74gO+sbjVbtkmlHnLIkkkUwGGh98mCSYb6GeiSs0GPX9y9atp9yXl2ODPZd+SHai44AusOg2rwJvWXz3LaeEdGm4xCTitK8Z46r5cciZFOW+lhyhgeejl/PvbdQf1wJNEcsesaxWXX55SQpKX3Gt/c9dMWStH7DLDYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=telka.sk; spf=pass smtp.mailfrom=telka.sk; arc=none smtp.client-ip=185.14.234.118 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=telka.sk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=telka.sk Received: (qmail 16676 invoked from network); 23 May 2024 22:39:06 -0000 Received: from telcontar.in.telka.sk (HELO telcontar) (marcel@10.0.0.10) by tortuga.telka.sk with ESMTPSA (DHE-RSA-AES256-GCM-SHA384 encrypted); 23 May 2024 22:39:06 -0000 Date: Fri, 24 May 2024 00:39:05 +0200 From: Marcel Telka To: Eric Sunshine Cc: Junio C Hamano , git@vger.kernel.org Subject: Re: [PATCH] t/t9902-completion.sh: backslashes in echo Message-ID: References: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, May 23, 2024 at 11:47:13PM +0200, Marcel Telka wrote: > Interesting. I came to this issue because the test failed here due to > the echo. So apparently the re-run under bash didn't happen here for > some reason or bash's echo behaved differently? I need to dig into it > again to find what's going on. Okay, I found the cause. Bash on OpenIndiana is compiled with --enable-xpg-echo-default so escape sequencies are expanded by default. > OTOH, it seems that the fix is maybe not needed because it is solving a > non-problem. There is a problem, but definitely the justification in the commit message is not accurate because we do not care about POSIX here at all. Also maybe it would be better/simpler to use `echo -E` instead of `printf`, but I'm not sure here. Thanks. -- +-------------------------------------------+ | Marcel Telka e-mail: marcel@telka.sk | | homepage: http://telka.sk/ | +-------------------------------------------+