mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
}, ], ]], 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>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# ]
|
||||
|
||||
> This shell keyword is used to close out `[`.
|
||||
|
||||
- View documentation for the `[` keyword:
|
||||
|
||||
`tldr [`
|
||||
@@ -0,0 +1,7 @@
|
||||
# ]]
|
||||
|
||||
> This shell keyword is used to close out `[[`.
|
||||
|
||||
- View documentation for the `[[` keyword:
|
||||
|
||||
`tldr [[`
|
||||
@@ -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`
|
||||
@@ -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`
|
||||
@@ -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`
|
||||
@@ -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`
|
||||
@@ -0,0 +1,7 @@
|
||||
# esac
|
||||
|
||||
> This shell keyword is used to end a `case` statement.
|
||||
|
||||
- View documentation for the `case` keyword:
|
||||
|
||||
`tldr case`
|
||||
@@ -0,0 +1,7 @@
|
||||
# fi
|
||||
|
||||
> This shell keyword is used to end an `if` statement.
|
||||
|
||||
- View documentation for the `if` keyword:
|
||||
|
||||
`tldr if`
|
||||
@@ -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`
|
||||
@@ -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`
|
||||
@@ -0,0 +1,7 @@
|
||||
# }
|
||||
|
||||
> This shell keyword is used to close out `{`.
|
||||
|
||||
- View documentation for the `{` keyword:
|
||||
|
||||
`tldr {`
|
||||
Reference in New Issue
Block a user