commit 8cfa180fae5399837f7dcddaa7b8f998422a7429
parent e95469bcbb0ce1f907de488fe9662a9d6166e627
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 29 May 2025 14:51:28 +0200
docs: reword the descriptions of --operatingdir and 'set operatingdir'
Diffstat:
3 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/doc/nano.1 b/doc/nano.1
@@ -299,8 +299,8 @@ and writes to the pipe when the user saves the "file". This way
\fBgpg\fR without having to write sensitive data to disk first.
.TP
.BI \-o " directory\fR, " \-\-operatingdir= directory
-Set the operating directory. This makes \fBnano\fR set up something
-similar to a chroot.
+Change to the given \fIdirectory\fR, and allow reading and writing
+files only in this directory and its subdirectories.
.TP
.BR \-p ", " \-\-preserve
Preserve the XOFF and XON sequences (\fB^S\fR and \fB^Q\fR) so that
diff --git a/doc/nano.texi b/doc/nano.texi
@@ -642,8 +642,8 @@ and writes to the pipe when the user saves the "file". This way
@item -o @var{directory}
@itemx --operatingdir=@var{directory}
-Set the operating directory. This makes @command{nano} set up something
-similar to a chroot.
+Change to the given @var{directory}, and allow reading and writing
+files only in this directory and its subdirectories.
@item -p
@itemx --preserve
@@ -1101,10 +1101,8 @@ Use this color combination for line numbers.
@xref{@code{set keycolor}} for valid color names.
@item set operatingdir "@var{directory}"
-@command{nano} only reads and writes files inside @var{directory} and its
-subdirectories. Also, the current directory is changed to here, so
-files are inserted from this directory. By default, the operating
-directory feature is turned off.
+At startup, make @command{nano} change to the given @var{directory}, and
+allow reading and writing files only in this directory and its subdirectories.
@item set positionlog
Save the positions of cursor and anchors between editing sessions.
diff --git a/doc/nanorc.5 b/doc/nanorc.5
@@ -250,10 +250,8 @@ Use this color combination for line numbers.
See \fBset \%titlecolor\fR for more details.
.TP
.B set operatingdir \fIdirectory\fR
-\fBnano\fR only reads and writes files inside \fIdirectory\fR and its
-subdirectories. Also, the current directory is changed to here, so
-files are inserted from this directory. By default, the operating
-directory feature is turned off.
+At startup, make \fBnano\fR change to the given \fIdirectory\fR, and allow
+reading and writing files only in this directory and its subdirectories.
.TP
.B set positionlog
Save the positions of cursor and anchors between editing sessions.