bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bind -x and multiple prompt/command lines


From: Chet Ramey
Subject: Re: bind -x and multiple prompt/command lines
Date: Sun, 16 Nov 2014 20:51:18 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 4/22/14 7:34 AM, Jesper Nygårds wrote:
> Here are simplified versions of two functions that I have written. Both are
> inspired by similar functions floating around on the zsh mailing lists. The
> first copies the previous word on the command line, and the second one
> converts three consecutive dots (...) into ../.., and you can then keep
> adding levels by typing . repeatedly.

There will be a fix for this in the next release of bash.

The current implementation is more oriented towards commands that do
display to stdout, in which case the shell needs to do full redisplay.
The fix I'm making will allow a command to return a special exit status
to indicate that the previous behavior is desired.

This won't really make a difference to people who don't use bind -x or
don't have multi-line prompts.

Chet
-- 
``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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]