Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11857
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: ${var@P} expansion includes 0x01 and 0x02 |
| Date | 2015-11-10 08:56 -0500 |
| Message-ID | <mailman.2059.1447163783.7904.bug-bash@gnu.org> (permalink) |
| References | <20151027210241.GJ27325@eeg.ccf.org> <5630D3C5.3040000@case.edu> <CANaoh6+AM+QGoBu90knu-uSSG+g95EBgWcJUijdHHm8_pKCJRQ@mail.gmail.com> <563CB062.90800@case.edu> <CANaoh6+KBiMQhRVcBrvpSsA_J9FCzhnn-A5GX1QvSVEj=1XjzQ@mail.gmail.com> |
On 11/9/15 7:53 PM, Dennis Williamson wrote: > > With editing off, I find that I must delimit variables with braces. Without > the braces, only the second escape sequence is output. The \] isn't > terminating the variable name when editing is off. When line editing isn't enabled, the \[ and \] escapes have no meaning, so they're removed. In the example you give, removing them results in the variable name including `Hello'. If this is a problem for your prompt, you should delimit variable names with braces. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: ${var@P} expansion includes 0x01 and 0x02 Chet Ramey <chet.ramey@case.edu> - 2015-11-10 08:56 -0500
csiph-web