1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-14 11:21:58 +02:00

doc: csplit: clarify [OFFSET] syntax

* src/csplit.c (usage): Clarify that '+' prefix is optional on OFFSET.
* doc/coreutils.texi (csplit invocation): Likewise.
Fixes https://bugs.gnu.org/53574
This commit is contained in:
Pádraig Brady
2022-01-27 13:05:39 +00:00
parent 2ba6fb653c
commit 4a0a8fdbec
2 changed files with 3 additions and 2 deletions

View File

@@ -3554,7 +3554,8 @@ file once for each repeat.
@item /@var{regexp}/[@var{offset}]
Create an output file containing the current line up to (but not
including) the next line of the input file that contains a match for
@var{regexp}. The optional @var{offset} is an integer.
@var{regexp}. The optional @var{offset} is an integer, that can
be preceded by @samp{+} or @samp{-}.
If it is given, the input up to (but not including) the
matching line plus or minus @var{offset} is put into the output file,
and the line after that begins the next section of input.

View File

@@ -1515,7 +1515,7 @@ Each PATTERN may be:\n\
{INTEGER} repeat the previous pattern specified number of times\n\
{*} repeat the previous pattern as many times as possible\n\
\n\
A line OFFSET is a required '+' or '-' followed by a positive integer.\n\
A line OFFSET is an integer optionally preceded by '+' or '-'\n\
"), stdout);
emit_ancillary_info (PROGRAM_NAME);
}