diff options
author | Kevin Ballard <kevin@sb.org> | 2014-09-29 13:26:28 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-29 13:39:35 -0700 |
commit | d67800bbce8731cec7ab38609af3e2fe713e16c3 (patch) | |
tree | 0638e5e883df9f7f0855011f5a246c00fb499506 /doc_src | |
parent | 27dd37ebb4c660ab122ece69bc187b36e390b25b (diff) |
Make false/true into builtins
Making `true` into a builtin is a significant optimization to `while
true` loops. As long as `true` is a builtin, we may as well make `false`
builtin as well (despite the fact that it's not typically executed in a
loop).
Diffstat (limited to 'doc_src')
-rw-r--r-- | doc_src/false.txt | 10 | ||||
-rw-r--r-- | doc_src/true.txt | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/doc_src/false.txt b/doc_src/false.txt new file mode 100644 index 00000000..1ce5a461 --- /dev/null +++ b/doc_src/false.txt @@ -0,0 +1,10 @@ +\section false false - return an unsuccessful result + +\subsection false-synopsis Synopsis +\fish{synopsis} +false +\endfish + +\subsection false-description Description + +`false` sets the exit status to 1. diff --git a/doc_src/true.txt b/doc_src/true.txt new file mode 100644 index 00000000..1418c1ed --- /dev/null +++ b/doc_src/true.txt @@ -0,0 +1,10 @@ +\section true true - return a successful result + +\subsection true-synopsis Synopsis +\fish{synopsis} +true +\endfish + +\subsection true-description Description + +`true` sets the exit status to 0. |