3 ms·
It's !:h - not just a plain :h $ echo foo /bar foo /bar $ !:h echo foo foo It's under `man bash` in the History Expansion section.
by falcolas 9y ago
It's !:h - not just a plain :h
$ echo foo /bar
foo /bar
$ !:h
echo foo
foo
It's under `man bash` in the History Expansion section.
- pimlottc 9y agoThat's not quite what the author was talking about; your example does the same thing as !:0- This is what the author meant: $ echo foo/bar foo/bar $ !:h echo foo foo