Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Paul Goyette suggested improvements to parts of the d...



details:   https://anonhg.NetBSD.org/src/rev/d1bb8b78a0eb
branches:  trunk
changeset: 829042:d1bb8b78a0eb
user:      kre <kre%NetBSD.org@localhost>
date:      Mon Jan 15 11:27:39 2018 +0000

description:
Paul Goyette suggested improvements to parts of the description of
LINENO ... this is what resulted (with thanks for the grammar lessons,
and sundry references provided!)

No date (Dd) bump - there is no change of substance here, just (hopefully)
a clearer way of saying the same thing.

diffstat:

 bin/sh/sh.1 |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (33 lines):

diff -r 2870a44c8a44 -r d1bb8b78a0eb bin/sh/sh.1
--- a/bin/sh/sh.1       Mon Jan 15 11:16:04 2018 +0000
+++ b/bin/sh/sh.1       Mon Jan 15 11:27:39 2018 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: sh.1,v 1.174 2017/11/19 03:23:01 kre Exp $
+.\"    $NetBSD: sh.1,v 1.175 2018/01/15 11:27:39 kre Exp $
 .\" Copyright (c) 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -3808,14 +3808,16 @@
 mentioned above which can be used for any other variable.
 .Pp
 .Ev LINENO
-can be exported,
-made readonly (which prevents attempts to assign to it,
-and to unset it, but which does not change the value,
-that is the current line number, from being obtained when
+can be exported, made readonly, or unset, as with any other
+variable, with similar effects.
+Note that while being readonly prevents later attempts to
+set, or unset,
+.Ev LINENO ,
+it does not prevent its value changing.
+References to
 .Ev LINENO
-is referenced,)
-and can be unset.
-All of those act as they would with any other variable.
+.Pq "when not unset"
+always obtain the current line number.
 However,
 .Ev LINENO
 should normally not ever be set or unset.



Home | Main Index | Thread Index | Old Index