summaryrefslogtreecommitdiff
path: root/doc/hsuser.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/hsuser.texi')
-rw-r--r--doc/hsuser.texi10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/hsuser.texi b/doc/hsuser.texi
index b8fedf3..0a81c46 100644
--- a/doc/hsuser.texi
+++ b/doc/hsuser.texi
@@ -214,8 +214,9 @@ end of the history, and an index of @samp{-1} refers to the current
@code{history -d} command.
@item -d @var{start}-@var{end}
-Delete the history entries between positions @var{start} and @var{end},
-inclusive. Positive and negative values for @var{start} and @var{end}
+Delete the range of history entries between positions @var{start} and
+@var{end}, inclusive.
+Positive and negative values for @var{start} and @var{end}
are interpreted as described above.
@item -a
@@ -250,6 +251,11 @@ used, if @var{filename}
is given, then it is used as the history file. If not, then
the value of the @env{HISTFILE} variable is used.
+The return value is 0 unless an invalid option is encountered, an
+error occurs while reading or writing the history file, an invalid
+@var{offset} or range is supplied as an argument to @option{-d}, or the
+history expansion supplied as an argument to @option{-p} fails.
+
@end table
@end ifset