docs: be more precise about when a dash is given instead of a filename
The dash doesn't have to be the first non-option argument: it can be anywhere among the filenames -- there can even be multiple ones (but don't mention this explicitly).master
parent
50cbde8b23
commit
3719d8e208
|
@ -36,8 +36,8 @@ When giving a filename on the command line, the cursor can be put on a
|
||||||
specific line by adding the line number with a plus sign (\fB+\fR) before
|
specific line by adding the line number with a plus sign (\fB+\fR) before
|
||||||
the filename, and even in a specific column by adding it with a comma.
|
the filename, and even in a specific column by adding it with a comma.
|
||||||
|
|
||||||
If the first file specified is a dash (\fB\-\fR), \fBnano\fR will read
|
As a special case: if instead of a filename a dash (\fB\-\fR) is given,
|
||||||
data from standard input.
|
\fBnano\fR will read data from standard input.
|
||||||
|
|
||||||
.SH EDITING
|
.SH EDITING
|
||||||
Entering text and moving around in a file is straightforward: typing the
|
Entering text and moving around in a file is straightforward: typing the
|
||||||
|
|
|
@ -112,9 +112,9 @@ file (@pxref{Nanorc Files}). And when using @code{set positionlog}
|
||||||
(making @code{nano} remember the cursor position when you close a file),
|
(making @code{nano} remember the cursor position when you close a file),
|
||||||
you will rarely need to specify a line number.
|
you will rarely need to specify a line number.
|
||||||
|
|
||||||
As a special case: when the first file specified is a dash, @code{nano}
|
As a special case: when instead of a filename a dash is given, @code{nano}
|
||||||
will read data from standard input. Which means you can pipe the output
|
will read data from standard input. This means you can pipe the output of
|
||||||
of a command straight into a buffer.
|
a command straight into a buffer, and then edit it.
|
||||||
|
|
||||||
@node Command-line Options
|
@node Command-line Options
|
||||||
@chapter Command-line Options
|
@chapter Command-line Options
|
||||||
|
|
Loading…
Reference in New Issue