2024-12-26 09:16:03 +02:00
|
|
|
# continue
|
|
|
|
|
|
|
|
> Skip to the next iteration of a `for`, `while`, `until` or `select` loop.
|
|
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-continue>.
|
|
|
|
|
|
|
|
- Skip to the next iteration:
|
|
|
|
|
$, case, continue, coproc, getopts, select, suspend, ulimit, while: refresh page (#17687)
Refreshed $, case, continue, coproc, getopts, select, suspend, ulimit, while .md pages
2025-08-16 21:28:41 +03:00
|
|
|
`while :; do continue; {{echo "This will never be reached"}}; done`
|
2024-12-26 09:16:03 +02:00
|
|
|
|
2024-12-26 19:52:18 +02:00
|
|
|
- Skip to the next iteration from within a nested loop:
|
2024-12-26 09:16:03 +02:00
|
|
|
|
$, case, continue, coproc, getopts, select, suspend, ulimit, while: refresh page (#17687)
Refreshed $, case, continue, coproc, getopts, select, suspend, ulimit, while .md pages
2025-08-16 21:28:41 +03:00
|
|
|
`for i in {{{1..3}}}; do {{echo $i}}; while :; do continue 2; done; done`
|