mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-03 20:11:15 -03:00
Convert \\subsection sections into rst format
This commit is contained in:
@@ -7,7 +7,8 @@ Synopsis
|
||||
while CONDITION; COMMANDS...; end
|
||||
|
||||
|
||||
\subsection while-description Description
|
||||
Description
|
||||
------------
|
||||
|
||||
`while` repeatedly executes `CONDITION`, and if the exit status is 0, then executes `COMMANDS`.
|
||||
|
||||
@@ -18,7 +19,8 @@ The exit status of the loop is 0 otherwise.
|
||||
|
||||
You can use <a href="#and">`and`</a> or <a href="#or">`or`</a> for complex conditions. Even more complex control can be achieved with `while true` containing a <a href="#break">break</a>.
|
||||
|
||||
\subsection while-example Example
|
||||
Example
|
||||
------------
|
||||
|
||||
\fish
|
||||
while test -f foo.txt; or test -f bar.txt ; echo file exists; sleep 10; end
|
||||
|
||||
Reference in New Issue
Block a user