Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11457
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | "Helmut Karlowski" <helmut.karlowski@ish.de> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: \c-handling in $'-strings |
| Date | Tue, 01 Sep 2015 23:46:28 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 41 |
| Message-ID | <op.x4a2vqn6ofd6j1@nebbiolo.upc.de> (permalink) |
| References | <op.x33p5xjhofd6j1@nebbiolo.upc.de> <mailman.248.1441030661.19560.bug-bash@gnu.org> |
| NNTP-Posting-Host | KI55aZ7LNnCoM32DfYXE9Q.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-15; format=flowed; delsp=yes |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Opera Mail/12.16 (Win32) |
| X-Antivirus-Status | Clean |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| X-Antivirus | avast! (VPS 150901-0, 01.09.2015), Outbound message |
| Xref | csiph.com gnu.bash.bug:11457 |
Show key headers only | View raw
Am 31.08.2015, 15:17 Uhr,SCHRIEB Chet Ramey <chet.ramey@case.edu>: > Conversion to a control character is effected by ANDing with 0x1f, since > the valid control character range is 0-0x1f. If you have something > that's > not a valid control character after being ANDed with 0x1f, you get > undefined results. > > There is a table in > > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/stty.html#tag_20_123 Do you refer to the table titled "Circumflex Control Characters in stty"? It states for example: ? <DEL> Running: echo $'\c?' |od -a echo $'\c[\c\\c]\c^\c_\c?' |od -a bash prints: 0000000 us nl 0000002 0000000 esc fs c ] rs us us nl I'd expect: 0000000 del nl 0000002 0000000 esc fs gs rs us del nl Also the ] in the output seems wrong, looks it gets the \\ wrong, though ksh93 does this also. Not a serious issue ... -Helmut
Back to gnu.bash.bug | Previous | Next — Previous in thread | Next in thread | Find similar
\c-handling in $'-strings "Helmut Karlowski" <helmut.karlowski@ish.de> - 2015-08-29 00:28 +0100
Re: \c-handling in $'-strings Chet Ramey <chet.ramey@case.edu> - 2015-08-31 10:17 -0400
Re: \c-handling in $'-strings "Helmut Karlowski" <helmut.karlowski@ish.de> - 2015-09-01 23:46 +0100
Re: \c-handling in $'-strings Chet Ramey <chet.ramey@case.edu> - 2015-09-02 09:19 -0400
Re: \c-handling in $'-strings "Helmut Karlowski" <helmut.karlowski@ish.de> - 2015-09-02 22:10 +0100
Re: \c-handling in $'-strings Eric Blake <eblake@redhat.com> - 2015-09-02 15:44 -0600
Re: \c-handling in $'-strings Chet Ramey <chet.ramey@case.edu> - 2015-09-03 09:58 -0400
csiph-web