From 453a76bfed54dd5bae609468f7f9cb64336f2511 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Mon, 31 Mar 2025 16:10:26 +0300 Subject: [PATCH] }, ], ]], then, elif, else, fi, in, do, done, esac: add page (#16045) * Create then.md * Create else.md * Create elif.md * Create fi.md * Create esac.md * Create do.md * Create in.md * Create done.md * Create }.md * Create ].md * Create ]].md * test * Update [.md * Update then.md * Update do.md * Update else.md * Update wrong-filename.sh --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/].md | 7 +++++++ pages/common/]].md | 7 +++++++ pages/common/do.md | 19 +++++++++++++++++++ pages/common/done.md | 19 +++++++++++++++++++ pages/common/elif.md | 7 +++++++ pages/common/else.md | 7 +++++++ pages/common/esac.md | 7 +++++++ pages/common/fi.md | 7 +++++++ pages/common/in.md | 7 +++++++ pages/common/then.md | 7 +++++++ pages/common/}.md | 7 +++++++ 11 files changed, 101 insertions(+) create mode 100644 pages/common/].md create mode 100644 pages/common/]].md create mode 100644 pages/common/do.md create mode 100644 pages/common/done.md create mode 100644 pages/common/elif.md create mode 100644 pages/common/else.md create mode 100644 pages/common/esac.md create mode 100644 pages/common/fi.md create mode 100644 pages/common/in.md create mode 100644 pages/common/then.md create mode 100644 pages/common/}.md diff --git a/pages/common/].md b/pages/common/].md new file mode 100644 index 0000000000..3b120d0148 --- /dev/null +++ b/pages/common/].md @@ -0,0 +1,7 @@ +# ] + +> This shell keyword is used to close out `[`. + +- View documentation for the `[` keyword: + +`tldr [` diff --git a/pages/common/]].md b/pages/common/]].md new file mode 100644 index 0000000000..5a8af3bd2b --- /dev/null +++ b/pages/common/]].md @@ -0,0 +1,7 @@ +# ]] + +> This shell keyword is used to close out `[[`. + +- View documentation for the `[[` keyword: + +`tldr [[` diff --git a/pages/common/do.md b/pages/common/do.md new file mode 100644 index 0000000000..8e8a536792 --- /dev/null +++ b/pages/common/do.md @@ -0,0 +1,19 @@ +# do + +> This shell keyword is used with `for`, `while`, `select`, and `until` to mark the start of a loop. + +- View documentation for the `for` keyword: + +`tldr for` + +- View documentation for the `while` keyword: + +`tldr while` + +- View documentation for the `select` keyword: + +`tldr select` + +- View documentation for the `until` keyword: + +`tldr until` diff --git a/pages/common/done.md b/pages/common/done.md new file mode 100644 index 0000000000..278030e900 --- /dev/null +++ b/pages/common/done.md @@ -0,0 +1,19 @@ +# done + +> This shell keyword is used with `for`, `while`, `select`, and `until` to mark the end of a loop. + +- View documentation for the `for` keyword: + +`tldr for` + +- View documentation for the `while` keyword: + +`tldr while` + +- View documentation for the `select` keyword: + +`tldr select` + +- View documentation for the `until` keyword: + +`tldr until` diff --git a/pages/common/elif.md b/pages/common/elif.md new file mode 100644 index 0000000000..f5b85ff251 --- /dev/null +++ b/pages/common/elif.md @@ -0,0 +1,7 @@ +# elif + +> This shell keyword is used in combination with `if` and `else` to define a code branch. + +- View documentation for `if` command: + +`tldr if` diff --git a/pages/common/else.md b/pages/common/else.md new file mode 100644 index 0000000000..532948f26d --- /dev/null +++ b/pages/common/else.md @@ -0,0 +1,7 @@ +# else + +> This shell keyword is used in combination with `if` and `elif` to define a code branch if no other branch was valid. + +- View documentation for the `if` keyword: + +`tldr if` diff --git a/pages/common/esac.md b/pages/common/esac.md new file mode 100644 index 0000000000..f542c8567d --- /dev/null +++ b/pages/common/esac.md @@ -0,0 +1,7 @@ +# esac + +> This shell keyword is used to end a `case` statement. + +- View documentation for the `case` keyword: + +`tldr case` diff --git a/pages/common/fi.md b/pages/common/fi.md new file mode 100644 index 0000000000..b99d98c444 --- /dev/null +++ b/pages/common/fi.md @@ -0,0 +1,7 @@ +# fi + +> This shell keyword is used to end an `if` statement. + +- View documentation for the `if` keyword: + +`tldr if` diff --git a/pages/common/in.md b/pages/common/in.md new file mode 100644 index 0000000000..3f450bbe29 --- /dev/null +++ b/pages/common/in.md @@ -0,0 +1,7 @@ +# in + +> This shell keyword is used with `for` to separate the iterator and items to iterate. + +- View documentation for the `for` keyword: + +`tldr for` diff --git a/pages/common/then.md b/pages/common/then.md new file mode 100644 index 0000000000..db20dd1148 --- /dev/null +++ b/pages/common/then.md @@ -0,0 +1,7 @@ +# then + +> This shell keyword is used in combination with `if` and `elif` to separate branches and branch conditions. + +- View documentation for `if` command: + +`tldr if` diff --git a/pages/common/}.md b/pages/common/}.md new file mode 100644 index 0000000000..2f187be505 --- /dev/null +++ b/pages/common/}.md @@ -0,0 +1,7 @@ +# } + +> This shell keyword is used to close out `{`. + +- View documentation for the `{` keyword: + +`tldr {`