snippetbashTip
false — Returns a non-zero exit code. See also: `true`. More information: <https://www.gnu.org/software/bash
Viewed 0 times
commandexitreturnsfalseclicodenonzero
Problem
How to use the
false command: Returns a non-zero exit code. See also: true. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-false>.Solution
false — Returns a non-zero exit code. See also: true. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-false>.Return a non-zero exit code:
falseMake a command always exit with 1:
{{command}} && falseCode Snippets
Return a non-zero exit code
falseMake a command always exit with 1
{{command}} && falseContext
tldr-pages: common/false
Revisions (0)
No revisions yet.