snippetbashTip
true — Returns a successful exit status code of 0. See also: `false`. More information: <https://www.gnu.or
Viewed 0 times
commandexitreturnssuccessfulstatusclicodetrue
Problem
How to use the
true command: Returns a successful exit status code of 0. See also: false. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-true>.Solution
true — Returns a successful exit status code of 0. See also: false. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-true>.Return a successful exit code:
trueMake a command always exit with 0:
{{command}} || trueCode Snippets
Return a successful exit code
trueMake a command always exit with 0
{{command}} || trueContext
tldr-pages: common/true
Revisions (0)
No revisions yet.