Skip to content
Snippets Groups Projects
Commit 8d06f9d0 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

NSH: Improved documentation of the break command

parent 612d8ed1
No related branches found
No related tags found
No related merge requests found
......@@ -117,12 +117,12 @@ Looping
Execute <cmd-sequence> as long as <test-cmd> has an exit status of
zero.
until <test-cmd>; do <cmd-sequence>; done
until <test-cmd>; do <cmd-sequence>; done
Execute <cmd-sequence> as long as <test-cmd> has a non-zero exit
status.
A break command is also supported. The break command is only valid
A break command is also supported. The break command is only meaningful
within the body of the a while or until loop, between the do and done
tokens. If the break command is executed within the body of a loop, the
loop will immediately terminate and execution will continue with the
......@@ -301,6 +301,14 @@ o base64dec [-w] [-f] <string or filepath>
o base64dec [-w] [-f] <string or filepath>
o break
The break command is only meaningful within the body of the a while or
until loop, between the do and done tokens. Outside of a loop, break
command does nothing. If the break command is executed within the body
of a loop, the loop will immediately terminate and execution will
continue with the next command immediately following the done token.
o cat <path> [<path> [<path> ...]]
This command copies and concatenates all of the files at <path>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment