It is in the nature of bash that you can go a decade without ever figuring something out only to have your life changed by a random comment on the internet.
:D I have been on the receiving end enough times that I am very very happy to have passed it on this time.
Is there a shortcut to reuse the result of the last command? “which java => ll $(!!)”, but the “!!” reexecutes the last command, I’d like something which doesn’t.
I'm not personally aware of a way to do that. When I need to do that I do indeed just run $(!!)