bug-bash
[Top][All Lists]
Advanced

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

Re: feature request: capture output of last command and make it availabl


From: Raphaël
Subject: Re: feature request: capture output of last command and make it available on some hotkey
Date: Wed, 14 Aug 2013 08:28:13 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Jul 31, 2013 at 11:45:37AM -0400, Greg Wooledge wrote:
> On Wed, Jul 31, 2013 at 02:09:23AM +0200, Jörn Hees wrote:
> > i think this would be a very useful feature and i don't seem to be alone:
> > http://stackoverflow.com/questions/5955577/bash-automatically-capture-output-of-last-executed-command-into-a-variable
> 
> Bash has no knowledge of, and no way to interact with, commands that
> it spawns.
[...]
> Bash can't "capture" this in a variable.  Your TERMINAL might be able to
> cough up output on demand, but bash is completely unaware of the output.

Q&D extension for urxvt:
http://lists.schmorp.de/pipermail/rxvt-unicode/2011q4/001494.html

> pastes the last line up to the first occurence of ':'
It's a must-have for me as it permits to grab the last matching file
after a `grep`:

$ grep misc *
$ less [press M-V]



regards



reply via email to

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