Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
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/