Source-Changes-HG archive

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

[src/trunk]: src Change back various occurrences of \*[Le], \*[Ge] (less/grea...



details:   https://anonhg.NetBSD.org/src/rev/af41131c61a5
branches:  trunk
changeset: 369699:af41131c61a5
user:      hgutch <hgutch%NetBSD.org@localhost>
date:      Sun Aug 28 10:48:15 2022 +0000

description:
Change back various occurrences of \*[Le], \*[Ge] (less/greater equal)
and \*(ua (upwards arrow) to literal "<=", ">=" and "^" whenever
appropriate (e.g., in code examples).

diffstat:

 bin/csh/csh.1                   |  24 ++++++++++++------------
 bin/expr/expr.1                 |   4 ++--
 external/bsd/flex/bin/flex.1    |   6 +++---
 lib/libc/string/strlcpy.3       |   6 +++---
 sbin/disklabel/disklabel.5      |   4 ++--
 share/man/man4/man4.sun2/leds.4 |   4 ++--
 share/man/man4/man4.sun3/leds.4 |   4 ++--
 share/man/man4/unix.4           |   4 ++--
 usr.bin/head/head.1             |   4 ++--
 usr.bin/mkstr/mkstr.1           |   4 ++--
 usr.bin/tail/tail.1             |   4 ++--
 11 files changed, 34 insertions(+), 34 deletions(-)

diffs (280 lines):

diff -r 988166e66ed5 -r af41131c61a5 bin/csh/csh.1
--- a/bin/csh/csh.1     Sun Aug 28 10:43:18 2022 +0000
+++ b/bin/csh/csh.1     Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: csh.1,v 1.56 2022/07/09 21:19:44 uwe Exp $
+.\"    $NetBSD: csh.1,v 1.57 2022/08/28 10:48:15 hgutch Exp $
 .\"
 .\" Copyright (c) 1980, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -476,7 +476,7 @@
 This `!' may be preceded by a `\e' to prevent its special meaning; for
 convenience, an `!' is passed unchanged when it is followed by a blank,
 tab, newline, `=' or `('.
-(History substitutions also occur when an input line begins with `\*(ua'.
+(History substitutions also occur when an input line begins with `^'.
 This special abbreviation will be described later.)
 Any input line that contains history substitution is echoed on the terminal
 before it is executed as it would have been typed without history substitution.
@@ -530,7 +530,7 @@
 .It Ar n
 .Ar n Ns 'th
 argument
-.It \*(ua
+.It ^
 first argument,  i.e., `1'
 .It $
 last argument
@@ -544,7 +544,7 @@
 abbreviates
 .Ar `\&0\-y\'
 .It *
-abbreviates `\*(ua\-$', or nothing if only 1 word in event
+abbreviates `^\-$', or nothing if only 1 word in event
 .It Ar x*
 abbreviates
 .Ar `x\-$\'
@@ -555,7 +555,7 @@
 .El
 .Pp
 The `:' separating the event specification from the word designator
-can be omitted if the argument selector begins with a `\*(ua', `$', `*',
+can be omitted if the argument selector begins with a `^', `$', `*',
 `\-' or `%'.
 After the optional word designator can be
 placed a sequence of modifiers, each preceded by a `:'.
@@ -624,14 +624,14 @@
 Here, the reference is to the previous command unless a previous
 history reference occurred on the same line in which case this form repeats
 the previous reference.
-Thus `!?foo?\*(ua !$' gives the first and last arguments
+Thus `!?foo?^ !$' gives the first and last arguments
 from the command matching `?foo?'.
 .Pp
 A special abbreviation of a history reference occurs when the first
-non-blank character of an input line is a `\*(ua'.
-This is equivalent to `!:s\*(ua' providing a convenient
+non-blank character of an input line is a `^'.
+This is equivalent to `!:s^' providing a convenient
 shorthand for substitutions on the text of the previous line.
-Thus `\*(ualb\*(ualib' fixes the spelling of
+Thus `^lb^lib' fixes the spelling of
 `lib'
 in the previous command.
 Finally, a history substitution may be surrounded with `{' and `}'
@@ -669,7 +669,7 @@
 .Pp
 Thus if the alias for `ls' is `ls \-l' the command `ls /usr' would map to
 `ls \-l /usr', the argument list here being undisturbed.
-Similarly if the alias for `lookup' was `grep !\*(ua /etc/passwd' then
+Similarly if the alias for `lookup' was `grep !^ /etc/passwd' then
 `lookup bill' would map to `grep bill /etc/passwd'.
 .Pp
 If an alias is found, the word transformation of the input text
@@ -987,12 +987,12 @@
 commands.
 The following operators are available:
 .Bd -ragged -offset indent
-\&|\&|  &&  \&| \*(ua  &  ==  !=  =~  !~  \*[Le]  \*[Ge]
+\&|\&|  &&  \&|  ^  &  ==  !=  =~  !~  <=  >=
 <  > <<  >>  +  \-  *  /  %  !  ~  (  )
 .Ed
 .Pp
 Here the precedence increases to the right,
-`==' `!=' `=~' and `!~', `\*[Le]' `\*[Ge]' `<'
+`==' `!=' `=~' and `!~', `<=' `>=' `<'
 and `>', `<<' and `>>', `+' and `\-',
 `*' `/' and `%' being, in groups, at the same level.
 The `==' `!=' `=~' and `!~' operators compare their arguments as strings;
diff -r 988166e66ed5 -r af41131c61a5 bin/expr/expr.1
--- a/bin/expr/expr.1   Sun Aug 28 10:43:18 2022 +0000
+++ b/bin/expr/expr.1   Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: expr.1,v 1.37 2017/07/03 21:33:23 wiz Exp $
+.\"    $NetBSD: expr.1,v 1.38 2022/08/28 10:48:16 hgutch Exp $
 .\"
 .\" Copyright (c) 2000,2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -62,7 +62,7 @@
 .Ar expr1
 if neither expression evaluates to an empty string or zero;
 otherwise, returns zero.
-.It Ar expr1 Li "{=, >, \*[Ge], <, \*[Le], !=}" Ar expr2
+.It Ar expr1 Li "{=, >, >=, <, <=, !=}" Ar expr2
 Returns the results of integer comparison if both arguments are integers;
 otherwise, returns the results of string comparison using the locale-specific
 collation sequence.
diff -r 988166e66ed5 -r af41131c61a5 external/bsd/flex/bin/flex.1
--- a/external/bsd/flex/bin/flex.1      Sun Aug 28 10:43:18 2022 +0000
+++ b/external/bsd/flex/bin/flex.1      Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: flex.1,v 1.4 2021/12/01 21:44:12 wiz Exp $
+.\" $NetBSD: flex.1,v 1.5 2022/08/28 10:48:16 hgutch Exp $
 .\"
 .TH FLEX 1 "December 2021" "Version 2.5"
 .SH NAME
@@ -939,7 +939,7 @@
     /* Copy yytext because unput() trashes yytext */
     char *yycopy = strdup( yytext );
     unput( ')' );
-    for ( i = yyleng - 1; i \*[Ge] 0; --i )
+    for ( i = yyleng - 1; i >= 0; --i )
         unput( yycopy[i] );
     unput( '(' );
     free( yycopy );
@@ -1769,7 +1769,7 @@
 
     \*[Lt]incl\*[Gt][ \\t]*      /* eat the whitespace */
     \*[Lt]incl\*[Gt][^ \\t\\n]+   { /* got the include file name */
-            if ( include_stack_ptr \*[Ge] MAX_INCLUDE_DEPTH )
+            if ( include_stack_ptr >= MAX_INCLUDE_DEPTH )
                 {
                 fprintf( stderr, "Includes nested too deeply" );
                 exit( 1 );
diff -r 988166e66ed5 -r af41131c61a5 lib/libc/string/strlcpy.3
--- a/lib/libc/string/strlcpy.3 Sun Aug 28 10:43:18 2022 +0000
+++ b/lib/libc/string/strlcpy.3 Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: strlcpy.3,v 1.13 2010/04/14 13:07:51 wiz Exp $
+.\"    $NetBSD: strlcpy.3,v 1.14 2022/08/28 10:48:16 hgutch Exp $
 .\" from OpenBSD: strlcpy.3,v 1.11 2000/11/16 23:27:41 angelos Exp
 .\"
 .\" Copyright (c) 1998, 2000 Todd C. Miller <Todd.Miller%courtesan.com@localhost>
@@ -160,9 +160,9 @@
 
 \&...
 
-if (strlcpy(pname, dir, sizeof(pname)) \*[Ge] sizeof(pname))
+if (strlcpy(pname, dir, sizeof(pname)) >= sizeof(pname))
        goto toolong;
-if (strlcat(pname, file, sizeof(pname)) \*[Ge] sizeof(pname))
+if (strlcat(pname, file, sizeof(pname)) >= sizeof(pname))
        goto toolong;
 .Ed
 .Pp
diff -r 988166e66ed5 -r af41131c61a5 sbin/disklabel/disklabel.5
--- a/sbin/disklabel/disklabel.5        Sun Aug 28 10:43:18 2022 +0000
+++ b/sbin/disklabel/disklabel.5        Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: disklabel.5,v 1.30 2017/07/03 21:33:41 wiz Exp $
+.\"    $NetBSD: disklabel.5,v 1.31 2022/08/28 10:48:16 hgutch Exp $
 .\"
 .\" Copyright (c) 1987, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -121,7 +121,7 @@
 /*
  * The absolute maximum number of disk partitions allowed.
  * This is the maximum value of MAXPARTITIONS for which 'struct disklabel'
- * is \*[Le] DEV_BSIZE bytes long.  If MAXPARTITIONS is greater than this, beware.
+ * is <= DEV_BSIZE bytes long.  If MAXPARTITIONS is greater than this, beware.
  */
 #define MAXMAXPARTITIONS       22
 #if MAXPARTITIONS > MAXMAXPARTITIONS
diff -r 988166e66ed5 -r af41131c61a5 share/man/man4/man4.sun2/leds.4
--- a/share/man/man4/man4.sun2/leds.4   Sun Aug 28 10:43:18 2022 +0000
+++ b/share/man/man4/man4.sun2/leds.4   Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: leds.4,v 1.10 2017/07/03 21:30:59 wiz Exp $
+.\"    $NetBSD: leds.4,v 1.11 2022/08/28 10:48:16 hgutch Exp $
 .\"
 .\" Copyright (c) 1997 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -87,7 +87,7 @@
 of the display to the other, using six clock ticks between each update.
 .Bd -ragged -offset indent
 # echo 5 8 254 253 251 247 239 223 191 127 |
-  awk '{ for (i=1;i\*[Le]NF;i++) printf("%c",$i+0); }' > /dev/leds
+  awk '{ for (i=1;i<=NF;i++) printf("%c",$i+0); }' > /dev/leds
 .Ed
 .Sh ERRORS
 An I/O transfer to
diff -r 988166e66ed5 -r af41131c61a5 share/man/man4/man4.sun3/leds.4
--- a/share/man/man4/man4.sun3/leds.4   Sun Aug 28 10:43:18 2022 +0000
+++ b/share/man/man4/man4.sun3/leds.4   Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: leds.4,v 1.13 2017/07/03 21:30:59 wiz Exp $
+.\"    $NetBSD: leds.4,v 1.14 2022/08/28 10:48:16 hgutch Exp $
 .\"
 .\" Copyright (c) 1997 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -89,7 +89,7 @@
 of the display to the other, using six clock ticks between each update.
 .Bd -ragged -offset indent
 # echo 5 8 254 253 251 247 239 223 191 127 |
-  awk '{ for (i=1;i\*[Le]NF;i++) printf("%c",$i+0); }' > /dev/leds
+  awk '{ for (i=1;i<=NF;i++) printf("%c",$i+0); }' > /dev/leds
 .Ed
 .Sh ERRORS
 An I/O transfer to
diff -r 988166e66ed5 -r af41131c61a5 share/man/man4/unix.4
--- a/share/man/man4/unix.4     Sun Aug 28 10:43:18 2022 +0000
+++ b/share/man/man4/unix.4     Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: unix.4,v 1.28 2022/06/28 20:12:52 rillig Exp $
+.\"    $NetBSD: unix.4,v 1.29 2022/08/28 10:48:16 hgutch Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -250,7 +250,7 @@
 
 memset(&addr, 0, sizeof(addr));
 addr.sun_family = AF_LOCAL;
-if (strlen(pathname) \*[Ge] sizeof(addr.sun_path))
+if (strlen(pathname) >= sizeof(addr.sun_path))
        goto too_long;
 strncpy(addr.sun_path, pathname, sizeof(addr.sun_path));
 ret = bind(s, (const struct sockaddr *)&addr, SUN_LEN(&addr));
diff -r 988166e66ed5 -r af41131c61a5 usr.bin/head/head.1
--- a/usr.bin/head/head.1       Sun Aug 28 10:43:18 2022 +0000
+++ b/usr.bin/head/head.1       Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: head.1,v 1.14 2017/07/04 06:59:34 wiz Exp $
+.\"    $NetBSD: head.1,v 1.15 2022/08/28 10:48:16 hgutch Exp $
 .\"
 .\" Copyright (c) 1980, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -58,7 +58,7 @@
 If more than a single file is specified, or the
 .Fl v
 option is used, each file is preceded by a header consisting of the string
-.Dq ==> XXX \*[Le]=
+.Dq ==> XXX <==
 where
 .Dq XXX
 is the name of the file.
diff -r 988166e66ed5 -r af41131c61a5 usr.bin/mkstr/mkstr.1
--- a/usr.bin/mkstr/mkstr.1     Sun Aug 28 10:43:18 2022 +0000
+++ b/usr.bin/mkstr/mkstr.1     Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mkstr.1,v 1.13 2017/07/03 21:34:20 wiz Exp $
+.\"    $NetBSD: mkstr.1,v 1.14 2022/08/28 10:48:16 hgutch Exp $
 .\"
 .\" Copyright (c) 1980, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -111,7 +111,7 @@
                        exit 1 ;
                }
        }
-       if (lseek(efil, a1, 0) < 0 || read(efil, buf, 256) \*[Le] 0)
+       if (lseek(efil, a1, 0) < 0 || read(efil, buf, 256) <= 0)
                goto oops;
        printf(buf, a2, a3, a4);
 }
diff -r 988166e66ed5 -r af41131c61a5 usr.bin/tail/tail.1
--- a/usr.bin/tail/tail.1       Sun Aug 28 10:43:18 2022 +0000
+++ b/usr.bin/tail/tail.1       Sun Aug 28 10:48:15 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: tail.1,v 1.20 2017/10/15 03:57:47 pgoyette Exp $
+.\"    $NetBSD: tail.1,v 1.21 2022/08/28 10:48:17 hgutch Exp $
 .\"
 .\" Copyright (c) 1980, 1990, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -143,7 +143,7 @@
 .Fl v
 option is used, each file is preceded by a
 header consisting of the string
-.Dq ==> XXX \*[Le]=
+.Dq ==> XXX <==
 where
 .Dq XXX
 is the name of the file.



Home | Main Index | Thread Index | Old Index