Tue Mar 13 20:29:13 2018 UTC ()
Use \(or not \*(Ba when discussing case patterns.


(uwe)
diff -r1.180 -r1.181 src/bin/sh/sh.1

cvs diff -r1.180 -r1.181 src/bin/sh/sh.1 (expand / switch to unified diff)

--- src/bin/sh/sh.1 2018/03/13 20:18:16 1.180
+++ src/bin/sh/sh.1 2018/03/13 20:29:13 1.181
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: sh.1,v 1.180 2018/03/13 20:18:16 uwe Exp $ 1.\" $NetBSD: sh.1,v 1.181 2018/03/13 20:29:13 uwe Exp $
2.\" Copyright (c) 1991, 1993 2.\" Copyright (c) 1991, 1993
3.\" The Regents of the University of California. All rights reserved. 3.\" The Regents of the University of California. All rights reserved.
4.\" 4.\"
5.\" This code is derived from software contributed to Berkeley by 5.\" This code is derived from software contributed to Berkeley by
6.\" Kenneth Almquist. 6.\" Kenneth Almquist.
7.\" 7.\"
8.\" Redistribution and use in source and binary forms, with or without 8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions 9.\" modification, are permitted provided that the following conditions
10.\" are met: 10.\" are met:
11.\" 1. Redistributions of source code must retain the above copyright 11.\" 1. Redistributions of source code must retain the above copyright
12.\" notice, this list of conditions and the following disclaimer. 12.\" notice, this list of conditions and the following disclaimer.
13.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" 2. Redistributions in binary form must reproduce the above copyright
14.\" notice, this list of conditions and the following disclaimer in the 14.\" notice, this list of conditions and the following disclaimer in the
@@ -1317,27 +1317,27 @@ The syntax of the @@ -1317,27 +1317,27 @@ The syntax of the
1317.Ic case 1317.Ic case
1318command is 1318command is
1319.Bd -literal -offset indent 1319.Bd -literal -offset indent
1320case word in 1320case word in
1321[(] pattern ) [ list ] ;& 1321[(] pattern ) [ list ] ;&
1322[(] pattern ) [ list ] ;; 1322[(] pattern ) [ list ] ;;
1323\&... 1323\&...
1324esac 1324esac
1325.Ed 1325.Ed
1326.Pp 1326.Pp
1327The pattern can actually be one or more patterns (see 1327The pattern can actually be one or more patterns (see
1328.Sx Shell Patterns 1328.Sx Shell Patterns
1329described later), separated by 1329described later), separated by
1330.Dq \*(Ba 1330.Dq \(or
1331characters. 1331characters.
1332.Pp 1332.Pp
1333Word is expanded and matched against each pattern in turn, 1333Word is expanded and matched against each pattern in turn,
1334from first to last, 1334from first to last,
1335with each pattern being expanded just before the match is attempted. 1335with each pattern being expanded just before the match is attempted.
1336When a match is found, pattern comparisons cease, and the associated 1336When a match is found, pattern comparisons cease, and the associated
1337.Dq list , 1337.Dq list ,
1338if given, 1338if given,
1339is evaluated. 1339is evaluated.
1340If the list is terminated with 1340If the list is terminated with
1341.Dq \&;& 1341.Dq \&;&
1342execution then falls through to the following list, if any, 1342execution then falls through to the following list, if any,
1343without evaluating its pattern, or attempting a match. 1343without evaluating its pattern, or attempting a match.