Quote:
Originally Posted by rodusa
I don't think you understood.
|
I know Three ways to do this task, but only 1 that produces the behavior you are describing.
Code:
shopt -s histverify
is what you want and I
know exactly what you meant and three ways to interact with bash history, and I gave two methods and one link that
has the answer by the way.
Now before you might offend us further wrt: "I don't think you..." style statements,
Code:
history | tail
816 2013-04-12 20:26:46 find notebook.zim
817 2013-04-12 20:27:17 find notebook.zim -exec cat {} \;
818 2013-04-12 20:27:55 ll zim/
819 2013-04-12 20:28:00 ll zim/preferences.conf
820 2013-04-12 20:28:02 cat zim/preferences.conf
821 2013-04-12 20:28:39 cd ~
822 2013-04-12 20:28:42 ll
823 2013-04-13 09:35:41 shopt -s histverify
824 2013-04-13 09:37:18 history
825 2013-04-13 09:37:27 history | tail
!420
cat zim/preferences.conf # this is my kung-fu
What's sad that you had the correct Solution in my 2nd reply/link, and I perhaps spent more time on your solution than you did.
Good day, sir.