|
| From: | Chet Ramey |
| Subject: | Re: squeezing blanks out of command lines |
| Date: | Sat, 29 Jan 2005 18:01:13 -0500 |
| User-agent: | Mozilla Thunderbird 1.0 (Macintosh/20041206) |
Dan Jacobson wrote:
The challenge: at the prompt take a line like $ this is a long line with lots of space and turn it into $ this is a long line with lots of space With GNU emacs, a mere M-h M-q does the job. But I bet bash is helpless here.
This completely artificial problem can be solved with a little effort and judicious use of M-\ (delete-horizontal-space).
Readline isn't a full-blown implementation of emacs, and never will be.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.CWRU.Edu
http://cnswww.cns.cwru.edu/~chet/
| [Prev in Thread] | Current Thread | [Next in Thread] |