[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The yank-last-arg ("_") command and comments
From: |
Thomas Mellman |
Subject: |
The yank-last-arg ("_") command and comments |
Date: |
Fri, 07 Jul 2006 13:11:17 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050317) |
A recent new version of bash has changed the behavior of the
yank-last-arg command ("_"). Is there a way to revert to the old behavior?
Now, it no longer does so for comment lines.
i.e. yank the last arg.
A very frequent thing that happens to me is that I discover
after typing in a command line that the object of the command hasn't
been properly readied.
For example, I want to put a file somewhere, and then remember
that the subdirectory hasn't been created yet. The yank-last-arg command
is very useful in combination with the insert-comment command:
I just hit "#" to turn the command into a comment,
and then enter the necessary command and hit <f1>
(i.e. XTerm ... <Key> F1: string(0x1b) string("_") \n\ ...)
mkdir <f1>
then I can bring back the commented-out line, x-out the comment character,
and rerun it with just a very few key-presses.
--
-----------------------------------------------------------------------
Thomas Mellman Tel: +49/8233/389-037
Creative Telcom Solutions
mellman@creative-telcom-solutions.de Fax: +49/1212-5-115-48-103
- The yank-last-arg ("_") command and comments,
Thomas Mellman <=