1CONTINUE(1P)               POSIX Programmer's Manual              CONTINUE(1P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       continue — continue for, while, or until loop
13

SYNOPSIS

15       continue [n]
16

DESCRIPTION

18       If n is specified, the continue utility shall return to the top of  the
19       nth  enclosing  for,  while, or until loop. If n is not specified, con‐
20       tinue shall behave as if n was specified as 1. Returning to the top  of
21       the loop involves repeating the condition list of a while or until loop
22       or performing the next assignment of a for loop, and  re-executing  the
23       loop if appropriate.
24
25       The  value of n is a positive decimal integer. If n is greater than the
26       number of enclosing loops, the outermost enclosing loop shall be  used.
27       If there is no enclosing loop, the behavior is unspecified.
28
29       The  meaning  of ``enclosing'' shall be as specified in the description
30       of the break utility.
31

OPTIONS

33       None.
34

OPERANDS

36       See the DESCRIPTION.
37

STDIN

39       Not used.
40

INPUT FILES

42       None.
43

ENVIRONMENT VARIABLES

45       None.
46

ASYNCHRONOUS EVENTS

48       Default.
49

STDOUT

51       Not used.
52

STDERR

54       The standard error shall be used only for diagnostic messages.
55

OUTPUT FILES

57       None.
58

EXTENDED DESCRIPTION

60       None.
61

EXIT STATUS

63        0    Successful completion.
64
65       >0    The n value was not an unsigned decimal integer greater  than  or
66             equal to 1.
67

CONSEQUENCES OF ERRORS

69       Default.
70
71       The following sections are informative.
72

APPLICATION USAGE

74       None.
75

EXAMPLES

77       for i in *
78       do
79           if test -d "$i"
80           then continue
81           fi
82           printf '"%s" is not a directory.\n' "$i"
83       done
84

RATIONALE

86       None.
87

FUTURE DIRECTIONS

89       None.
90

SEE ALSO

92       Section 2.14, Special Built-In Utilities
93
95       Portions  of  this text are reprinted and reproduced in electronic form
96       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
97       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
98       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
99       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
100       event of any discrepancy between this version and the original IEEE and
101       The  Open Group Standard, the original IEEE and The Open Group Standard
102       is the referee document. The original Standard can be  obtained  online
103       at http://www.opengroup.org/unix/online.html .
104
105       Any  typographical  or  formatting  errors that appear in this page are
106       most likely to have been introduced during the conversion of the source
107       files  to  man page format. To report such errors, see https://www.ker
108       nel.org/doc/man-pages/reporting_bugs.html .
109
110
111
112IEEE/The Open Group                  2017                         CONTINUE(1P)
Impressum