Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Make the `...' actually appear in the case/esac synta...



details:   https://anonhg.NetBSD.org/src/rev/d0565070ac45
branches:  trunk
changeset: 467319:d0565070ac45
user:      ross <ross%NetBSD.org@localhost>
date:      Tue Mar 23 02:29:29 1999 +0000

description:
Make the `...' actually appear in the case/esac syntax section.
Fix a space botch in the $@ example.
Kill warnings caused by the effective but wrong use of \[ and \] to
perform the function of \&[ and \&].

diffstat:

 bin/sh/sh.1 |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (69 lines):

diff -r 9f9ba2b13bef -r d0565070ac45 bin/sh/sh.1
--- a/bin/sh/sh.1       Tue Mar 23 00:38:15 1999 +0000
+++ b/bin/sh/sh.1       Tue Mar 23 02:29:29 1999 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: sh.1,v 1.28 1999/02/04 00:27:07 cjs Exp $
+.\"    $NetBSD: sh.1,v 1.29 1999/03/23 02:29:29 ross Exp $
 .\" Copyright (c) 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -619,7 +619,7 @@
 .Bd -literal -offset indent
 case word in
 pattern) list ;;
-...
+\&...
 esac
 .Ed
 .Pp
@@ -735,7 +735,7 @@
 the two arguments:
 .Pp
 .Sm off
-.Dl \*q abc \*q \  \*q def ghi \*q
+.Dl \*q abc \*q \  \*q def\ ghi \*q
 .Sm on
 .It #
 Expands to the number of positional parameters.
@@ -969,25 +969,25 @@
 .Pq Dq *
 matches any string of characters.  A question mark matches any single
 character. A left bracket
-.Pq Dq [
+.Pq Dq \&[
 introduces a character class.  The end of
 the character class is indicated by a
-.Pq Dq \] ;
+.Pq Dq \&] ;
 if the
-.Dq \]
+.Dq \&]
 is missing then the
-.Dq [
+.Dq \&[
 matches a
-.Dq [
+.Dq \&[
 rather than introducing a character class.  A character class matches any
 of the characters between the square brackets.  A range of characters may
 be specified using a minus sign. The character class may be complemented
 by making an exclamation point the first character of the character class.
 .Pp
 To include a
-.Dq \]
+.Dq \&]
 in a character class, make it the first character listed (after the
-.Dq ! ,
+.Dq \&! ,
 if any).  To include a minus sign, make it the first or last character listed
 .Ss Builtins
 .Pp
@@ -1459,7 +1459,7 @@
 file.  If set to 0, the check will occur at each prompt.
 .It Ev MAILPATH
 A colon
-.Dq \:
+.Dq \&:
 separated list of file names, for the shell to check for incoming mail.
 This environment setting overrides the
 .Ev MAIL



Home | Main Index | Thread Index | Old Index