Christian Zemlin <chr@itb.biologie.hu-berlin.de> wrote:
> find -name userguide*
> > doc/guides/userguide.ps
>
> (where the last line is bash's answer to the find command),
It's not bash's answer; it's find's own output. That's why it's not
more easily accessible: that data never passes through bash at all.
> Unfortunately a shell script called "l",
>
> echo $(!!)
>
> does not work, because the !! is not substituted.
Try this shell function:
l() { echo "$(eval "$(history -p '!!')")"; }
Of course, you'll probably want to replace "echo" with something more
interesting. Otherwise it's just the same as "!!" alone.
paul