Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11697

Re: why must bash zap last search string just because we hit ^C?

Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From Eduardo A. Bustamante López <dualbus@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: why must bash zap last search string just because we hit ^C?
Date Sun, 18 Oct 2015 11:24:37 -0500
Lines 42
Approved bug-bash@gnu.org
Message-ID <mailman.566.1445185488.7904.bug-bash@gnu.org> (permalink)
References <87io675lhj.fsf@jidanni.org> <87io64omdn.fsf@jidanni.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace usenet.stanford.edu 1445185489 7148 208.118.235.17 (18 Oct 2015 16:24:49 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Dennis Williamson <dennistwilliamson@gmail.com>, Bash - Bug <bug-bash@gnu.org>
To 積丹尼 Dan Jacobson <jidanni@jidanni.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=9VLUsFn7jXMX7HmC8wDxytEucafhHJuyQa0mprAlT5I=; b=e15TCesbneqgpta+dyrmKzzneWqkg9BB2hBrMcVnfaBZEeqW5O7kS5gS9q8ASOcWZl Viq/jcoUEA9N94HpK9SY+atNDdE63gEeTv6iOnvgJk7W4c8QVWlAwEPTHXdJ85vfKkf4 m7oadwKtQpJ9DUmsxtA9LqU9N01n5A2XXaZrIAyohxlWAMiLmc05+lYVH5pqbEAn6Oee Nxo0nafrcs0iuXAU1o89KFdGwQYQqk1hlRktpcdn32bqEL4EkX2qhsoMzv9ZcsEcwHXf 6/Arlq9n0w7EQ5EI0l01Zcp+kB6s0FLC1JREi2GmlTb8nH+fWtovyz6alYXdsnU+Tltb QqQg==
X-Received by 10.66.246.162 with SMTP id xx2mr28748079pac.144.1445185481750; Sun, 18 Oct 2015 09:24:41 -0700 (PDT)
Mail-Followup-To 積丹尼 Dan Jacobson <jidanni@jidanni.org>, Dave Rutherford <dave@evilpettingzoo.com>, Dennis Williamson <dennistwilliamson@gmail.com>, Bash - Bug <bug-bash@gnu.org>
Content-Disposition inline
In-Reply-To <87io64omdn.fsf@jidanni.org>
User-Agent Mutt/1.5.23 (2014-03-12)
X-detected-operating-system by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value).
X-Received-From 2607:f8b0:400e:c03::231
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11697

Show key headers only | View raw


On Sun, Oct 18, 2015 at 12:01:56PM +0800, 積丹尼 Dan Jacobson wrote:
> >>>>> "DR" == Dave Rutherford <dave@evilpettingzoo.com> writes:
> 
> DR> Can you run gnu screen? ^A-c will get you a new shell session in the
> DR> existing terminal emulator (it will use a new terminal device, though,
> DR> if that's what you care about.)
> 
> Let's pretend that I am on a gunk device on a gunk OS and all I have to
> work with is this one shell and I just want to back out of my search
> peacefully and resume it later with minimal ado. OK I will do ESC ESC #.
> 

If I have:

$ some long command I've typed 

And then boss calls: URGENT! Run uptime and tell me the output, I'll:


$ some long command I've typed 

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 

:-)

-- 
Eduardo Bustamante
https://dualbus.me/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: why must bash zap last search string just because we hit ^C? Eduardo A. Bustamante López <dualbus@gmail.com> - 2015-10-18 11:24 -0500

csiph-web