[email protected] wrote:
I recently tried naming two procs "mon" and "!mon".
In most cases executing !mon on the console executed mon.
It appears this is a feature of the history package,
however I'm not finding any mention of it in the manual page.
Does anyone know where it is documented?
The exclamation point for history expansion is used by GNU readline, so
if the history package is generally trying to emulate readline, that
would be where to look for documentation.
The docs for ! in the bash manpage are:
Event Designators
An event designator is a reference to a command line entry in
the history list. Unless the reference is absolute, events are
relative to the current position in the history list.
! Start a history substitution, except when followed by a
blank, newline, carriage return, = or ( (when the extglob
shell option is enabled using the shopt builtin).
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)