-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Bash builtins: refresh pages #19967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Bash builtins: refresh pages #19967
Changes from 35 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
a347ae6
Update return.md
Managor 5b70a18
Update [.md
Managor 7291e24
Update return.md
Managor 3a2e3c8
Update [.md
Managor 9372888
Update command.md
Managor b69b441
Update command.md
Managor e8b5261
Update continue.md
Managor 1d20140
Update enable.md
Managor c070a86
Update enable.md
Managor 9af64d5
Update bg.md
Managor 51f9e53
Update [[.md
Managor a78d31e
Update false.md
Managor 7f27265
Update true.md
Managor 75ca19c
Update shopt.md
Managor ac69855
Update shift.md
Managor 8f8d6e6
Update shift.md
Managor 3a57727
Update shift.md
Managor 729e4e6
Update fc.md
Managor 3a62217
Update fc.md
Managor f48059b
Update jobs.md
Managor 9a76f6b
Update fg.md
Managor a92841d
Update getopts.md
Managor 182b670
Update help.md
Managor 79b2915
Update let.md
Managor 758e4fd
Update times.md
Managor b604e99
Update times.md
Managor 5ab8739
Update true.md
Managor 926a2a4
Update false.md
Managor 2f78231
Update ulimit.md
Managor 8c9f7b9
Update unset.md
Managor d999e1a
Update time.md
Managor a0945cc
Update times.md
Managor 9102759
Update for.md
Managor db474f8
Update [[.md
Managor 917537c
Merge branch 'main' into bash-builtin
Managor 13e2b88
Update false.md
Managor 0542f91
Update true.md
Managor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,7 @@ | |
| - Disable a builtin (works in Bash only): | ||
|
|
||
| `enable -n {{command}}` | ||
|
|
||
| - Re-enable a builtin: | ||
|
|
||
| `enable {{command}}` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,12 @@ | ||
| # false | ||
|
|
||
| > Returns a non-zero exit code. | ||
| > More information: <https://www.gnu.org/software/coreutils/manual/html_node/false-invocation.html>. | ||
| > More information: <https://www.gnu.org/software/bash/manual/bash.html#index-false>. | ||
|
|
||
| - Return a non-zero exit code: | ||
|
|
||
| `false` | ||
|
|
||
| - Make a command always exit with 1: | ||
|
|
||
| `{{command}} && false` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,10 @@ | ||
| # times | ||
|
|
||
| > Print the cumulative CPU usage time of the current shell. | ||
| > First line is current shell CPU usage for User and System. Second is all child processes. | ||
| > See also: `time`. | ||
| > More information: <https://www.gnu.org/software/bash/manual/bash.html#index-times>. | ||
|
|
||
| - Print CPU usage. First line is current shell CPU usage for User and System. Second is all child processes: | ||
| - Print CPU usage: | ||
|
|
||
| `times` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,12 @@ | ||
| # true | ||
|
|
||
| > Returns a successful exit status code of 0. | ||
| > Use this with the || operator to make a command always exit with 0. | ||
| > More information: <https://www.gnu.org/software/coreutils/manual/html_node/true-invocation.html>. | ||
| > More information: <https://www.gnu.org/software/bash/manual/bash.html#index-true>. | ||
|
|
||
| - Return a successful exit code: | ||
|
|
||
| `true` | ||
|
|
||
| - Make a command always exit with 0: | ||
|
|
||
| `{{command}} || true` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.