blob: 4b78b30c12d280bb7289ddb6f85472c71483fad5 [file] [log] [blame]
Jari Aalto726f6381996-08-26 18:22:31 +00001This file is colon.def, from which is created colon.c.
2It implements the builtin ":" in Bash.
3
Jari Aalto31859422009-01-12 13:36:28 +00004Copyright (C) 1987-2009 Free Software Foundation, Inc.
Jari Aalto726f6381996-08-26 18:22:31 +00005
6This file is part of GNU Bash, the Bourne Again SHell.
7
Jari Aalto31859422009-01-12 13:36:28 +00008Bash is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 3 of the License, or
11(at your option) any later version.
Jari Aalto726f6381996-08-26 18:22:31 +000012
Jari Aalto31859422009-01-12 13:36:28 +000013Bash is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
Jari Aalto726f6381996-08-26 18:22:31 +000017
Jari Aalto31859422009-01-12 13:36:28 +000018You should have received a copy of the GNU General Public License
19along with Bash. If not, see <http://www.gnu.org/licenses/>.
Jari Aalto726f6381996-08-26 18:22:31 +000020
21$PRODUCES colon.c
22
23$BUILTIN :
Jari Aalto7117c2d2002-07-17 14:10:11 +000024$DOCNAME colon
Jari Aalto726f6381996-08-26 18:22:31 +000025$FUNCTION colon_builtin
26$SHORT_DOC :
Jari Aalto31859422009-01-12 13:36:28 +000027Null command.
28
29No effect; the command does nothing.
30
31Exit Status:
32Always succeeds.
Jari Aalto726f6381996-08-26 18:22:31 +000033$END
34
Jari Aaltoccc6cda1996-12-23 17:02:34 +000035$BUILTIN true
Jari Aaltoccc6cda1996-12-23 17:02:34 +000036$FUNCTION colon_builtin
37$SHORT_DOC true
38Return a successful result.
Jari Aalto31859422009-01-12 13:36:28 +000039
40Exit Status:
41Always succeeds.
Jari Aaltoccc6cda1996-12-23 17:02:34 +000042$END
43
44$BUILTIN false
Jari Aaltoccc6cda1996-12-23 17:02:34 +000045$FUNCTION false_builtin
46$SHORT_DOC false
47Return an unsuccessful result.
Jari Aalto31859422009-01-12 13:36:28 +000048
49Exit Status:
50Always fails.
Jari Aaltoccc6cda1996-12-23 17:02:34 +000051$END
52
53/* Return a successful result. */
Jari Aalto726f6381996-08-26 18:22:31 +000054int
55colon_builtin (ignore)
56 char *ignore;
57{
58 return (0);
59}
Jari Aaltoccc6cda1996-12-23 17:02:34 +000060
61/* Return an unsuccessful result. */
62int
63false_builtin (ignore)
64 char *ignore;
65{
66 return (1);
67}