It's also possible to disable history substitution altogether
with 'set +H'.
I believe this behavior is rather confusing to new users, and
given that C-r (reverse-search-history) and cursor keys already
offer a comparable feature, and one likely to fit better with
user's prior experience at that, my suggestion would be to
have it disabled by default.
In article <u6fvb9$hdk2$1@dont-email.me>,
Ivan Shmakov <ivan@siamics.netNOSPAM.invalid> wrote:
...
It's also possible to disable history substitution altogether
with 'set +H'.
I believe this behavior is rather confusing to new users, and
given that C-r (reverse-search-history) and cursor keys already
offer a comparable feature, and one likely to fit better with
user's prior experience at that, my suggestion would be to
have it disabled by default.
I agree. The ! thing was brought over into bash from (t)csh and it is
pretty universally a bad idea.
Do you remember There was a period in the 1990's when tcsh was widely
used? It was popular among early Linux users, too. I remember
getting a default login shell as tcsh on some systems
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 22:06:33 |
Calls: | 6,667 |
Calls today: | 1 |
Files: | 12,216 |
Messages: | 5,337,347 |