X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=pHRM /GXyShqHEVPMAPKlUcAz7R4ebCfxl2NRZOK9COdXT27rrQc69GfQRQ6uSfjQo4YR 9Cms32ZNorlQidw4bC2wPgIoHy2SSRRqglsNs5Cy35/flxgTUJ2YEP+56cPadeaS 7I1+iKNhfTikvDXV3okVwdGWLVY1ZCX0PauYlpI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=yRxkCQvNij 9E+B6RbwkzMn2ph5c=; b=UW8YyC6R0rXhRMcCcJwjQ6J+vvCPHJd3WMUoaIetKb 0eo+2U3ICeKrC26Kj8//83rvN9QbW3REtT1zw7k+CI282PKBthPHJIiHnVEpiY0/ 2YF3k0pXsvC1uWX06NtxS27iWs8Kb1Dq0f5+fykIN5/IP8LqXDxk9X8ARnRgOHJ1 0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Subject: Re: [ANNOUNCEMENT] Updated: bash-4.3.39-2 To: cygwin AT cygwin DOT com References: <20150604125154 DOT 712cbb6af2fc96c5a2306494 AT nm DOT ru> <560466C1 DOT 20709 AT redhat DOT com> <20150928173032 DOT f0a3253c068c27c077a0e18d AT inbox DOT ru> <5609550E DOT 5010100 AT redhat DOT com> <20150928194825 DOT ed376c0e77553eecd0abbbf4 AT inbox DOT ru> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <56098B80.8070301@redhat.com> Date: Mon, 28 Sep 2015 12:48:32 -0600 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 --26VQdcevppmaVhW7qwcvi4dn7MI4gdwJW Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" -----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--