Path: csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail From: Bob Proulx Newsgroups: gnu.bash.bug Subject: Re: why must bash zap last search string just because we hit ^C? Date: Sun, 18 Oct 2015 15:23:15 -0600 Lines: 23 Approved: bug-bash@gnu.org Message-ID: References: <87io675lhj.fsf@jidanni.org> <87io64omdn.fsf@jidanni.org> <20151018162437.GA16697@ma.sdf.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1445203404 16266 208.118.235.17 (18 Oct 2015 21:23:24 GMT) X-Complaints-To: action@cs.stanford.edu To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson , bug-bash@gnu.org Envelope-to: bug-bash@gnu.org Mail-Followup-To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson , bug-bash@gnu.org Content-Disposition: inline In-Reply-To: <20151018162437.GA16697@ma.sdf.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11698 Eduardo A. Bustamante L=F3pez wrote: > $ some long command I've typed=20 > And then boss calls: URGENT! Run uptime and tell me the output, I'll: > $ some long command I've typed=20 > Press Ctrl-u > $ _ > Write uptime RET > $ uptime > 11:23:45 up 4 days, 22:39, 4 users, load average: 0.51, 0.86, 0.75 > $ _ > Press Ctrl-y > $ some long command I've typed=20 > :-) Additionally let's say that along the way I killed some other text so that C-y yanks back that more recently killed text instead of the one I saved first. In that case ESC C-y will rotate the kill ring to the previous killed text. Repeating ESC C-y again rotates to the one before it. So can walk back through until finding the text I want to yank back. :-) Bob