commit e1f46a988a7ade1070d38f8074d50e76303205db
parent db7064b8e6f846d48df33eaa6ce4205819011c68
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Tue, 8 Apr 2014 19:40:37 +0000
Adding the documentation for the new --noread option.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4755 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
3 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,6 @@
+2014-04-08 Benno Schulenberg <bensberg@justemail.net>
+ * doc: Add the documentation for the new --noread option.
+
2014-04-08 Hans Alves <fonsvandeachterburen@gmail.com>
* nano.h, files.c, nano.c: Adding the command-line option --noread
to treat any name on the command line as a new file. This allows
diff --git a/doc/man/nano.1 b/doc/man/nano.1
@@ -19,7 +19,7 @@
.\" <http://www.gnu.org/licenses/>.
.\"
.\" $Id$
-.TH NANO 1 "version 2.3.3" "March 2014"
+.TH NANO 1 "version 2.3.3" "April 2014"
.\" Please adjust this date whenever revising the manpage.
.\"
@@ -171,6 +171,13 @@ clicks can be used to place the cursor, set the mark (with a double
click), and execute shortcuts. The mouse will work in the X Window
System, and on the console when gpm is running.
.TP
+.B \-n (\-\-noread)
+Treat any name given on the command line as a new file. This allows
+\fBnano\fR to write to named pipes: it will start with a blank buffer,
+and will write to the pipe when the user saves the "file". This way
+\fBnano\fR can be used as an editor in combination with for instance
+\fBgpg\fR without having to write sensitive data to disk first.
+.TP
.B \-o \fIdir\fP (\-\-operatingdir=\fIdir\fP)
Set operating directory. Makes \fBnano\fP set up something similar to a
chroot.
diff --git a/doc/texinfo/nano.texi b/doc/texinfo/nano.texi
@@ -8,8 +8,8 @@
@c Run 'makeinfo' rather than 'texinfo-format-buffer'.
@smallbook
@set EDITION 0.1
-@set VERSION 2.2.0
-@set UPDATED 30 Nov 2009
+@set VERSION 2.3.3
+@set UPDATED April 2014
@dircategory Editors
@direntry
@@ -241,6 +241,13 @@ clicks can be used to place the cursor, set the mark (with a double
click), and execute shortcuts. The mouse will work in the X Window
System, and on the console when gpm is running.
+@item -n, --noread
+Treat any name given on the command line as a new file. This allows
+@code{nano} to write to named pipes: it will start with a blank buffer,
+and will write to the pipe when the user saves the "file". This way
+@code{nano} can be used as an editor in combination with for instance
+@code{gpg} without having to write sensitive data to disk first.
+
@item -o <dir>, --operatingdir=<dir>
Set operating directory. Makes @code{nano} set up something similar to
a chroot.