From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94526 invoked by alias); 28 Sep 2015 18:48:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 94517 invoked by uid 89); 28 Sep 2015 18:48:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 28 Sep 2015 18:48:38 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 2418EC0AD288 for ; Mon, 28 Sep 2015 18:48:37 +0000 (UTC) Received: from [10.3.113.188] (ovpn-113-188.phx2.redhat.com [10.3.113.188]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8SImaf4003051 for ; Mon, 28 Sep 2015 14:48:36 -0400 Subject: Re: [ANNOUNCEMENT] Updated: bash-4.3.39-2 To: cygwin@cygwin.com References: <20150604125154.712cbb6af2fc96c5a2306494@nm.ru> <560466C1.20709@redhat.com> <20150928173032.f0a3253c068c27c077a0e18d@inbox.ru> <5609550E.5010100@redhat.com> <20150928194825.ed376c0e77553eecd0abbbf4@inbox.ru> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <56098B80.8070301@redhat.com> Date: Mon, 28 Sep 2015 18:48:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150928194825.ed376c0e77553eecd0abbbf4@inbox.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="26VQdcevppmaVhW7qwcvi4dn7MI4gdwJW" X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00499.txt.bz2 --26VQdcevppmaVhW7qwcvi4dn7MI4gdwJW Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 730 On 09/28/2015 10:48 AM, Mikhail Usenko wrote: > On Mon, 28 Sep 2015 08:56:14 -0600 > Eric Blake <...> wrote: >> >> 'echo -n' and 'echo -e' are non-portable (even in bash; because I can >> use 'shopt -s xpgecho' to get POSIX-mandated behavior). Use 'printf' >> instead. >> >=20 > xpg_echo doesn't change 'echo -ne' behavior xpg_echo in isolation does not, and POSIXLY_CORRECT in isolation does not, but together they DO affect echo: $ bash -c 'echo -n hi' hi $ bash -c 'shopt -s xpg_echo; echo -n hi' hi $ bash -c 'POSIXLY_CORRECT=3D1; echo -n hi' hi $ bash -c 'POSIXLY_CORRECT=3D1; shopt -s xpg_echo; echo -n hi' -n hi --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --26VQdcevppmaVhW7qwcvi4dn7MI4gdwJW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWCYuAAAoJEKeha0olJ0Nq+gIIAJU8FUMXuircFaCo6mAlzdim tIWFjtFxUvHVrmqDJ3kZfsLHaB7FRT67MdHg9Ul2VOWNXFHlSFanBsOSxy4tMqU8 BUgyu2dORg6l1UjWZTIqH19WTLaCDT7Hmf7+yHRDCWo3azZLp6O9xj+UJxT74PP8 /gcpM42c6BvfMLa46I+Nf5Pble78tt5/yb+LLIXlu/N5x+rPiYh/hSvBlac3K8a2 2l1dPkeBi4vhUhrML0wYnclt4w7vx6tv7e8WcXNFCj1p85m/I0Za7KF2cle6iIBH zAfvyNCrC3WdScgMwjqxZ25CDL4npFjkoBIBc7QCna5ISwhlS7cuUipy89UReRo= =buhn -----END PGP SIGNATURE----- --26VQdcevppmaVhW7qwcvi4dn7MI4gdwJW--