Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11316

Re: Enhancement: bash should have uniform escape syntaxes for `echo -e`, `printf` and `$'ANSI_C_style_escape'`.

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail
From Eric Blake <eblake@redhat.com>
Newsgroups gnu.bash.bug
Subject Re: Enhancement: bash should have uniform escape syntaxes for `echo -e`, `printf` and `$'ANSI_C_style_escape'`.
Date Mon, 10 Aug 2015 13:28:02 -0600
Organization Red Hat, Inc.
Lines 47
Approved bug-bash@gnu.org
Message-ID <mailman.8090.1439235019.904.bug-bash@gnu.org> (permalink)
References <523431b6.2c9.14f18e12b67.Coremail.arthur200126@163.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="i8HA3n35E2Pk6IxFVSUVVLJG8OkMgAfkF"
X-Trace usenet.stanford.edu 1439235020 20926 208.118.235.17 (10 Aug 2015 19:30:20 GMT)
X-Complaints-To action@cs.stanford.edu
To Arthur200000 <arthur200126@163.com>, "bug-bash@gnu.org" <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
Openpgp url=http://people.redhat.com/eblake/eblake.gpg
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
In-Reply-To <523431b6.2c9.14f18e12b67.Coremail.arthur200126@163.com>
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1439235013; bh=fIrbY0iW7zIo/8bCYK85ZECULzdljP8NRyjDn+7B6aA=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=iKRedKKNRwxriJ8IN1wLZwu/3cKyoebFTUOWdaLkIl0F+edOznDNNKwCQ6FFMUnHi PWV0g806lRcxUUykdbPoSRedk3x+41lWAFTJt30QXx70Iadlkdxevw66ojPV7lAksS K7oh4hnL1wDkN2Ju4D/1prNOQJsHbB7lzARTY4H9cq045EzEe/JXIVbil7jY7AdBIk 8vYNfO5792jYXhLKJNCDuwKTr/YPqcsTiIt9KfUxhQKlx1dHqkKlEO/oSEZDMdokC7 aHZinjXlsRR+bPV43ngc/XHGPmZz4oh6kwA0jRxUnfjWR0ZboIJ6sTQ7CTqBwgt0zO 0ZQlt/rS7kvhg==
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 69.252.207.35
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11316

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 08/10/2015 12:30 PM, Arthur200000 wrote:
> Configuration Information:
> Machine Type: i686-pc-cygwin, i686-pc-msys, x86_86-linux-gnu, x86_64-Apple-Darwin
> 
> Bash Version: 4.3
> Patch Level: 30
> Release Status: release
> 
> Description:
> 	Bash has different escape syntaxes for `echo -e`,

'echo -e' is inherently non-portable, and exists solely for backwards
compatibility.  As such, it is unlikely to be changed.  POSIX strongly
recommends that you use 'printf' instead.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Enhancement: bash should have uniform escape syntaxes for `echo -e`, `printf` and `$'ANSI_C_style_escape'`. Eric Blake <eblake@redhat.com> - 2015-08-10 13:28 -0600

csiph-web