Re: PS2 command substitution segfault

2014-04-18 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 4/17/14, 3:36 AM, Jared Yanovich wrote:
> Hi,
> 
>   $ PS2='$(:)'
>   $ cat <   EOF
>   Segmentation fault (core dumped)

Thanks for the report.  This is a nice piece of debugging.

Chet


- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlNRHf4ACgkQu1hp8GTqdKv6pQCeM8UBjIscBgn1PCsIDmOPJUMu
V+IAnjo5OAlb0ypnVYlwmDkpRHlJfNYd
=Kn0f
-END PGP SIGNATURE-



Re: bind -x and multiple prompt/command lines

2014-04-18 Thread Chet Ramey
On 4/15/14, 11:22 AM, Jesper Nygårds wrote:
> I don't have any solution to offer, but I would like to second the wish for
> this to work better, and for the same reason: I have written several very
> useful functions for rewriting the command line, binding them with bind -x.
> Like Rob, I have concluded that it does not work well with a multi-line
> prompt, as the visual effect of the prompt moving further and further down
> is rather unpleasant.

Can you send me one or two so I can play around with them and see what the
options are?

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/