[Top][All Lists]

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

Re: possible to refer to last result?

From: Christian Zemlin
Subject: Re: possible to refer to last result?
Date: Thu, 22 Nov 2001 16:22:44 +0100 (CET)

Thank you very much!  That is by far the shortest solution I have so far.
I wonder whether it is possible to make it still shorter by a shell
script.  Unfortunately a shell script called "l",

echo $(!!)

does not work, because the !! is not substituted.  Would you maybe know
how I can force history substitution here?


On 22 Nov 2001, Andreas Schwab wrote:

> Christian Zemlin <address@hidden> writes:
> |> I was actually thinking of something SHORTER than
> |> gv $(find -name userguide\*).
> How about:
> $ gv $(!!)
> assuming you have history substitution enabled (which is the default).  Or
> just edit the previous command line in place.
> Andreas.

reply via email to

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