Managing the History File
History Functions
These functions implement csh
-like history expansion.
0
|
If no expansions took place (or, if the only change in the text was the de-slashifying of the history expansion character); |
1
|
if expansions did take place; |
-1
|
if there was an error in expansion; |
2
|
if the returned line should only be displayed, but not executed,
as with the :p modifier (see Modifiers).
|
If an error ocurred in expansion, then output contains a descriptive error message.
()<>;&|$
, and shell quoting conventions are
obeyed.