| @@ -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 |
1318 | command is | | 1318 | command is |
1319 | .Bd -literal -offset indent | | 1319 | .Bd -literal -offset indent |
1320 | case word in | | 1320 | case word in |
1321 | [(] pattern ) [ list ] ;& | | 1321 | [(] pattern ) [ list ] ;& |
1322 | [(] pattern ) [ list ] ;; | | 1322 | [(] pattern ) [ list ] ;; |
1323 | \&... | | 1323 | \&... |
1324 | esac | | 1324 | esac |
1325 | .Ed | | 1325 | .Ed |
1326 | .Pp | | 1326 | .Pp |
1327 | The pattern can actually be one or more patterns (see | | 1327 | The pattern can actually be one or more patterns (see |
1328 | .Sx Shell Patterns | | 1328 | .Sx Shell Patterns |
1329 | described later), separated by | | 1329 | described later), separated by |
1330 | .Dq \*(Ba | | 1330 | .Dq \(or |
1331 | characters. | | 1331 | characters. |
1332 | .Pp | | 1332 | .Pp |
1333 | Word is expanded and matched against each pattern in turn, | | 1333 | Word is expanded and matched against each pattern in turn, |
1334 | from first to last, | | 1334 | from first to last, |
1335 | with each pattern being expanded just before the match is attempted. | | 1335 | with each pattern being expanded just before the match is attempted. |
1336 | When a match is found, pattern comparisons cease, and the associated | | 1336 | When a match is found, pattern comparisons cease, and the associated |
1337 | .Dq list , | | 1337 | .Dq list , |
1338 | if given, | | 1338 | if given, |
1339 | is evaluated. | | 1339 | is evaluated. |
1340 | If the list is terminated with | | 1340 | If the list is terminated with |
1341 | .Dq \&;& | | 1341 | .Dq \&;& |
1342 | execution then falls through to the following list, if any, | | 1342 | execution then falls through to the following list, if any, |
1343 | without evaluating its pattern, or attempting a match. | | 1343 | without evaluating its pattern, or attempting a match. |