From e1f46a988a7ade1070d38f8074d50e76303205db Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 8 Apr 2014 19:40:37 +0000 Subject: [PATCH] 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 --- ChangeLog | 3 +++ doc/man/nano.1 | 9 ++++++++- doc/texinfo/nano.texi | 11 +++++++++-- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d837d36c..f1ac6aa6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-04-08 Benno Schulenberg + * doc: Add the documentation for the new --noread option. + 2014-04-08 Hans Alves * 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 index f2ddbd4c..0f12e5a1 100644 --- a/doc/man/nano.1 +++ b/doc/man/nano.1 @@ -19,7 +19,7 @@ .\" . .\" .\" $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 index 1d29135e..9ce97b71 100644 --- 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 , --operatingdir= Set operating directory. Makes @code{nano} set up something similar to a chroot. -- 2.39.5