Re: ${var@P} expansion includes 0x01 and 0x02

2015-11-05 Thread Dennis Williamson
On Wed, Oct 28, 2015 at 8:55 AM, Chet Ramey wrote: > On 10/27/15 5:02 PM, Greg Wooledge wrote: > > I decided to play around with the ${var@P} expansion in 4.4-beta. > > > > imadev:~$ red=$(tput setaf 1) reset=$(tput sgr0) > x='\[$red\]\u\[$reset\]@\h:\w\$ '; printf %s "${x@P}" | od -t x1 > >

Proposed Prompt Escapes

2015-11-05 Thread Dennis Williamson
It might be handy to have some of the escapes that work in $'string' quoting to also work in prompts especially now with the ${parameter@P} transformation. Specifically the hex, unicode and control ones: \xHH, \u, \U and \cx. I presume that the dollar-single-quote escapes should not b

Re: shell-expand-line drops quotation marks

2015-11-05 Thread Stephane Chazelas
2015-11-04 14:45:40 +, Pádraig Brady: > On 04/11/15 13:47, Chet Ramey wrote: > > On 11/3/15 7:44 PM, Keith Thompson wrote: > >> The shell-expand-line command (bound to Escape-Ctrl-E) incorrectly removes > >> quotation marks from > >> the command line, often resulting in a command that differs f